locker: fix nop.

This commit is contained in:
Christopher Jeffrey 2016-09-30 11:23:21 -07:00
parent 63dd30393c
commit 2a43005c6b
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -86,7 +86,7 @@ Locker.prototype.lock = function lock(arg1, arg2) {
if (force) {
assert(this.busy);
return Promise.resolve(null);
return Promise.resolve(utils.nop);
}
if (this.busy) {
@ -220,7 +220,7 @@ MappedLock.prototype.lock = function lock(key, force) {
if (force || key == null) {
assert(key == null || this.busy[key]);
return Promise.resolve(null);
return Promise.resolve(utils.nop);
}
if (this.busy[key]) {