mirror of
https://github.com/stCarolas/setup-maven.git
synced 2026-10-02 09:31:32 +00:00
Husky commit correct node modules
This commit is contained in:
1 parent
c66179d93e
commit
10de3d4c54
607 files changed
+136508
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
module.exports = removeHook
|
||||
|
||||
function removeHook (state, name, method) {
|
||||
if (!state.registry[name]) {
|
||||
return
|
||||
}
|
||||
|
||||
var index = state.registry[name]
|
||||
.map(function (registered) { return registered.orig })
|
||||
.indexOf(method)
|
||||
|
||||
if (index === -1) {
|
||||
return
|
||||
}
|
||||
|
||||
state.registry[name].splice(index, 1)
|
||||
}
|
||||
Reference in new issue
Block a user