summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2017-04-03 01:21:50 -0700
committerAlexander Early <alexander.early@gmail.com>2017-04-03 01:21:50 -0700
commitfddea479f798be3bdf598e10b13ede4ad516cd92 (patch)
tree76ab52f211616a98afc666b4cc0da0f30d621c0c /perf
parent67e76ea150f30561e9ce7624459031197c45a68a (diff)
downloadasync-fddea479f798be3bdf598e10b13ede4ad516cd92.tar.gz
fix deprecation warning
Diffstat (limited to 'perf')
-rwxr-xr-xperf/benchmark.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/perf/benchmark.js b/perf/benchmark.js
index 42f400a..393464f 100755
--- a/perf/benchmark.js
+++ b/perf/benchmark.js
@@ -213,8 +213,7 @@ function cloneVersion(tag, callback) {
fs.open(versionDir + "/package.json", "r", function (err, handle) {
if (!err) {
// version has already been cloned
- fs.close(handle);
- return callback();
+ return fs.close(handle, callback);
}
var repoPath = path.join(__dirname, "..");