improve var naming

This commit is contained in:
Simon Martín 2018-08-02 11:38:54 +02:00
parent a910f1442e
commit 6c8f38a241

View File

@ -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);