We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069b843 commit a6fc75dCopy full SHA for a6fc75d
lib/git-hooks.js
@@ -122,15 +122,6 @@ module.exports = {
122
var hookName = path.basename(filename);
123
var hooksDirname = path.resolve(path.dirname(filename), '../../.githooks', hookName);
124
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
-
134
if (fsHelpers.exists(hooksDirname)) {
135
var list = fs.readdirSync(hooksDirname);
136
var hooks = list.map(function (hookName) {
0 commit comments