Commit 15c8b380dff5fefb550257e46b87876bda2db1e4
remove unused arg from firstPlug
Dominic Tarr committed on 5/20/2016, 8:06:52 PMParent: 1fd3c2d9148ba9ea22b04eabc592afe3ff16dabe
Files changed
util.js | changed |
util.js | ||
---|---|---|
@@ -37,9 +37,9 @@ | ||
37 | 37 | ) |
38 | 38 | }) |
39 | 39 | } |
40 | 40 | |
41 | -exports.firstPlug = function (plugs, fn) { | |
41 | +exports.firstPlug = function (plugs) { | |
42 | 42 | if(!Array.isArray(plugs)) throw new Error('plugs must be an array') |
43 | 43 | var args = [].slice.call(arguments) |
44 | 44 | var plugs = args.shift() |
45 | 45 | return exports.first(plugs, function (fn) { |
Built with git-ssb-web