improve var naming
This commit is contained in:
parent
a910f1442e
commit
6c8f38a241
@ -247,8 +247,8 @@ TemplateMaps.prototype.addTemplate = function(owner, template, callback) {
|
||||
}
|
||||
|
||||
if (!wasSet) {
|
||||
var ownerExistsError = new Error(`Template '${template.name}' of user '${owner}' already exists`);
|
||||
return callback(ownerExistsError);
|
||||
var templateExistsError = new Error(`Template '${template.name}' of user '${owner}' already exists`);
|
||||
return callback(templateExistsError);
|
||||
}
|
||||
|
||||
this.emit('add', owner, template.name, template);
|
||||
|
Loading…
Reference in New Issue
Block a user