This commit is contained in:
Girish Ramakrishnan
2024-11-21 19:18:26 +05:30
parent 22be1f1b72
commit ccd1a4319d
+1 -1
View File
@@ -24,7 +24,7 @@ Locker.prototype.lock = function (operation) {
assert.strictEqual(typeof operation, 'string');
if (this._operation !== null) {
let error = new BoxError(BoxError.CONFLICT, `Locked for ${this._operation}`);
const error = new BoxError(BoxError.CONFLICT, `Locked for ${this._operation}`);
error.operation = this._operation;
return error;
}