change batch.js style

This commit is contained in:
barisusakli
2016-11-03 23:24:36 +03:00
parent 264e7ee303
commit 01e7b864b8

View File

@@ -2,15 +2,13 @@
'use strict';
var async = require('async'),
db = require('./database'),
utils = require('../public/src/utils');
(function (Batch) {
var async = require('async');
var db = require('./database');
var utils = require('../public/src/utils');
var DEFAULT_BATCH_SIZE = 100;
Batch.processSortedSet = function (setKey, process, options, callback) {
exports.processSortedSet = function (setKey, process, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
@@ -63,7 +61,7 @@ var async = require('async'),
);
};
Batch.processArray = function (array, process, options, callback) {
exports.processArray = function (array, process, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
@@ -110,5 +108,3 @@ var async = require('async'),
}
);
};
}(exports));