From 99815550423d0886498cc07c77d9a5e2e5e002fe Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 18 Dec 2015 13:14:44 +0200 Subject: [PATCH] rename --- src/groups/update.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/groups/update.js b/src/groups/update.js index 0ac688aca0..26d2b258be 100644 --- a/src/groups/update.js +++ b/src/groups/update.js @@ -218,13 +218,13 @@ module.exports = function(Groups) { }); } - function checkNameChange(oldName, newName, callback) { - if (oldName === newName) { + function checkNameChange(currentName, newName, callback) { + if (currentName === newName) { return callback(); } - var oldSlug = utils.slugify(oldName); + var currentSlug = utils.slugify(currentName); var newSlug = utils.slugify(newName); - if (oldSlug === newSlug) { + if (currentSlug === newSlug) { return callback(); } Groups.existsBySlug(newSlug, function(err, exists) {