Skip to content

Commit

Permalink
Change to use let
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed May 23, 2024
1 parent f1d9dc7 commit 8ec99d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/mutators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ Model.prototype.addPromised = promisify<string>(Model.prototype.add);

Model.prototype._add = function(segments, value, cb) {
if (typeof value !== 'object') {
var message = 'add requires an object value. Invalid value: ' + value;
let message = 'add requires an object value. Invalid value: ' + value;
cb = this.wrapCallback(cb);
cb(new Error(message));
return;
Expand Down

0 comments on commit 8ec99d1

Please sign in to comment.