From 6ef3a914a8c94177dd1c3aaecb5a8e6c6dbef9f3 Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Tue, 4 Apr 2017 16:38:53 -0700 Subject: one more style fix --- lib/whilst.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/whilst.js b/lib/whilst.js index 5838b79..6c2869e 100644 --- a/lib/whilst.js +++ b/lib/whilst.js @@ -45,7 +45,8 @@ export default function whilst(test, iteratee, callback) { var next = function(err/*, ...args*/) { if (err) return callback(err); if (test()) return _iteratee(next); - callback.apply(null, [null].concat(slice(arguments, 1))); + var args = slice(arguments, 1); + callback.apply(null, [null].concat(args)); }; _iteratee(next); } -- cgit v1.2.1