Github API

This commit is contained in:
Luis Fernando Molina committed 2021-01-06 10:55:01 +01:00
1 parent 2efbf9c8aa
commit a9012f1bbf
282 files changed
+128405 -3

No files matched your search

+17
View File
@@ -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)
}