Skip to content

Commit 121c276

Browse files
committed
[Performance] avoid an unnecessary slice
1 parent 0a42ec2 commit 121c276

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ module.exports = function resolve(x, options, callback) {
216216
var rel = rfile.slice(0, rfile.length - exts[0].length);
217217
var r = opts.pathFilter(pkg, x, rel);
218218
if (r) return load(
219-
[''].concat(extensions.slice()),
219+
[''].concat(extensions),
220220
path.resolve(dir, r),
221221
pkg
222222
);

0 commit comments

Comments
 (0)