Skip to content

Commit b9180b3

Browse files
committed
Fix sode style
1 parent 783f360 commit b9180b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JavaScript/1-mutex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Mutex {
2121
}
2222

2323
leave() {
24-
if (!this.owner) return;
24+
if (!this.owner) return false;
2525
Atomics.store(this.lock, 0, UNLOCKED);
2626
Atomics.notify(this.lock, 0, 1);
2727
this.owner = false;

0 commit comments

Comments
 (0)