From 53dda7ba1ac9fd646f7d094f93a911cdb1f72b46 Mon Sep 17 00:00:00 2001 From: Yehor Lvivski Date: Thu, 29 Sep 2016 12:30:09 +0300 Subject: [PATCH] Fix Lie and Davy in doxbee-errors (#1248) * Rename `liar` to `lie` in `doxbee-errors` * Fix `davy` in `doxbee-errors` --- ...es-calvinmetcalf-liar.js => promises-calvinmetcalf-lie.js} | 4 ++-- benchmark/doxbee-sequential-errors/promises-lvivski-davy.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) rename benchmark/doxbee-sequential-errors/{promises-calvinmetcalf-liar.js => promises-calvinmetcalf-lie.js} (97%) diff --git a/benchmark/doxbee-sequential-errors/promises-calvinmetcalf-liar.js b/benchmark/doxbee-sequential-errors/promises-calvinmetcalf-lie.js similarity index 97% rename from benchmark/doxbee-sequential-errors/promises-calvinmetcalf-liar.js rename to benchmark/doxbee-sequential-errors/promises-calvinmetcalf-lie.js index b449639a4..ea4de4981 100644 --- a/benchmark/doxbee-sequential-errors/promises-calvinmetcalf-liar.js +++ b/benchmark/doxbee-sequential-errors/promises-calvinmetcalf-lie.js @@ -1,6 +1,6 @@ -global.useLiar = true; +global.useLie = true; -var promise = require("liar"); +var promise = require("lie"); require('../lib/fakesP'); diff --git a/benchmark/doxbee-sequential-errors/promises-lvivski-davy.js b/benchmark/doxbee-sequential-errors/promises-lvivski-davy.js index 5d8932c88..5ef5aa0ce 100755 --- a/benchmark/doxbee-sequential-errors/promises-lvivski-davy.js +++ b/benchmark/doxbee-sequential-errors/promises-lvivski-davy.js @@ -9,8 +9,7 @@ module.exports = function upload(stream, idOrPath, tag, done) { var fileP = self.byUuidOrPath(idOrPath).get(); var version, fileId, file; - davy.all([blobIdP, fileP]).spread(function(all) { - var blobId = all[0], fileV = all[1]; + davy.all([blobIdP, fileP]).spread(function(blobId, fileV) { file = fileV; var previousId = file ? file.version : null; version = {