Skip to content

Commit a6fc75d

Browse files
committed
Revert "Fix error "callback is not a function" tarmolov#25"
This reverts commit 47f76df.
1 parent 069b843 commit a6fc75d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/git-hooks.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,6 @@ module.exports = {
122122
var hookName = path.basename(filename);
123123
var hooksDirname = path.resolve(path.dirname(filename), '../../.githooks', hookName);
124124

125-
// workaround for backward copmatibility
126-
// npm 3.x doesn't execute preuninstall script
127-
// @see https://github.com/npm/npm/issues/13963
128-
args = [].concat(args) || [];
129-
if (typeof input === 'function') {
130-
callback = input;
131-
input = '';
132-
}
133-
134125
if (fsHelpers.exists(hooksDirname)) {
135126
var list = fs.readdirSync(hooksDirname);
136127
var hooks = list.map(function (hookName) {

0 commit comments

Comments
 (0)