1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

chore: use standard

This commit is contained in:
Ruben Bridgewater
2017-05-06 07:06:52 +02:00
parent 5d29f541e9
commit f1a7bcd735
106 changed files with 10706 additions and 10978 deletions

View File

@@ -1,16 +1,16 @@
'use strict';
'use strict'
var betterStackTraces = /development/i.test(process.env.NODE_ENV) || /\bredis\b/i.test(process.env.NODE_DEBUG);
var betterStackTraces = /development/i.test(process.env.NODE_ENV) || /\bredis\b/i.test(process.env.NODE_DEBUG)
function Command (command, args, callback, callOnWrite) {
this.command = command;
this.args = args;
this.bufferArgs = false;
this.callback = callback;
this.callOnWrite = callOnWrite;
if (betterStackTraces) {
this.error = new Error();
}
this.command = command
this.args = args
this.bufferArgs = false
this.callback = callback
this.callOnWrite = callOnWrite
if (betterStackTraces) {
this.error = new Error()
}
}
module.exports = Command;
module.exports = Command