1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/lib/command.js
Ruben Bridgewater f1a7bcd735 chore: use standard
2017-05-06 07:06:52 +02:00

17 lines
402 B
JavaScript

'use strict'
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()
}
}
module.exports = Command