diff options
author | Alexander Early <alexander.early@gmail.com> | 2017-04-03 01:21:50 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2017-04-03 01:21:50 -0700 |
commit | fddea479f798be3bdf598e10b13ede4ad516cd92 (patch) | |
tree | 76ab52f211616a98afc666b4cc0da0f30d621c0c /perf | |
parent | 67e76ea150f30561e9ce7624459031197c45a68a (diff) | |
download | async-fddea479f798be3bdf598e10b13ede4ad516cd92.tar.gz |
fix deprecation warning
Diffstat (limited to 'perf')
-rwxr-xr-x | perf/benchmark.js | 3 |
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, ".."); |