From eebac0f27cb94bb7ae0e21c8a40d0d1f238244ff Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 28 Jan 2015 23:45:51 +0100 Subject: [PATCH] undersore instead of camelcase --- modules/helpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/helpers.js b/modules/helpers.js index f14c0ab..5bb9636 100644 --- a/modules/helpers.js +++ b/modules/helpers.js @@ -120,7 +120,7 @@ function array_has_hash(arr, property, value) { } function store_images(uuid, details, type, callback) { - var isUUID = uuid.length > 16; + var is_uuid = uuid.length > 16; var new_hash = { uuid: uuid, type: type, @@ -128,8 +128,8 @@ function store_images(uuid, details, type, callback) { }; if (!array_has_hash(currently_running, "uuid", uuid)) { currently_running.push(new_hash); - networking.get_profile((isUUID ? uuid : null), function(err, profile) { - if (err || (isUUID && !profile)) { + networking.get_profile((is_uuid ? uuid : null), function(err, profile) { + if (err || (is_uuid && !profile)) { callback_for(uuid, type, err, null); } else { store_skin(uuid, profile, details, function(err, skin_hash) {