You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
var Queue = require('double-ended-queue');
|
||||
var utils = require('./utils');
|
||||
|
||||
function Multi(client, args) {
|
||||
function Multi (client, args) {
|
||||
this._client = client;
|
||||
this.queue = new Queue();
|
||||
var command, tmp_args;
|
||||
@@ -147,7 +147,7 @@ Multi.prototype.exec_transaction = function exec_transaction (callback) {
|
||||
pipeline_transaction_command(self, command, args[1], index, cb);
|
||||
}
|
||||
|
||||
self._client.send_command('exec', [], function(err, replies) {
|
||||
self._client.send_command('exec', [], function (err, replies) {
|
||||
multi_callback(self, err, replies);
|
||||
});
|
||||
self._client.uncork();
|
||||
@@ -173,7 +173,6 @@ Multi.prototype.exec = Multi.prototype.EXEC = Multi.prototype.exec_batch = funct
|
||||
var len = self.queue.length;
|
||||
var index = 0;
|
||||
var args;
|
||||
var args_len = 1;
|
||||
var callback_without_own_cb = function (err, res) {
|
||||
if (err) {
|
||||
self.results.push(err);
|
||||
@@ -203,7 +202,6 @@ Multi.prototype.exec = Multi.prototype.EXEC = Multi.prototype.exec_batch = funct
|
||||
while (args = self.queue.shift()) {
|
||||
var command = args[0];
|
||||
var cb;
|
||||
args_len = args[1].length - 1;
|
||||
if (typeof args[2] === 'function') {
|
||||
cb = batch_callback(self, args[2], index);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user