Commit 9d97740e authored by Andrew Bernstein's avatar Andrew Bernstein

Fixing some spacing issues for ifs and fors

parent a5f84544
......@@ -864,7 +864,7 @@ Client.config = {
memcached.command(function getMultiCommand(noreply) {
return {
callback: handle
, multi:true
, multi: true
, type: 'get'
, command: 'get ' + key.join(' ')
, key: keys
......
......@@ -29,11 +29,11 @@ exports.validateArg = function validateArg (args, config) {
if (toString.call(value) !== '[object Array]') {
err = 'Argument "' + key + '" is not a valid Array.';
}
if(!err && key === 'key') {
for(var vKey in value) {
if (!err && key === 'key') {
for (var vKey in value) {
var vValue = value[vKey];
var result = validateKeySize(config, vKey, vValue);
if(result.err) {
if (result.err) {
err = result.err;
} else {
args.command = args.command.replace(vValue, result['value']);
......@@ -63,7 +63,7 @@ exports.validateArg = function validateArg (args, config) {
if (!err && key === 'key') {
var result = validateKeySize(config, key, value);
if(result.err) {
if (result.err) {
err = result.err;
} else {
args.command = args.command.replace(value, result['value']);
......@@ -79,7 +79,7 @@ exports.validateArg = function validateArg (args, config) {
});
if (err){
if(args.callback) args.callback(new Error(err));
if (args.callback) args.callback(new Error(err));
return false;
}
......@@ -102,7 +102,7 @@ var validateKeySize = function validateKeySize(config, key, value) {
// a small util to use an object for eventEmitter
exports.fuse = function fuse (target, handlers) {
for(var i in handlers)
for (var i in handlers)
if (handlers.hasOwnProperty(i)){
target.on(i, handlers[i]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment