Skip to content

Commit 32bfc01

Browse files
committed
runtime: fix no-useless-ternary
Signed-off-by: Sora Morimoto <[email protected]>
1 parent acda8ed commit 32bfc01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/fs_fake.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ MlFakeDevice.prototype.is_dir = function (name) {
211211
return this.content[name_slash] ? 1 : 0;
212212
};
213213
MlFakeDevice.prototype.unlink = function (name) {
214-
const ok = this.content[name] ? true : false;
214+
const ok = !!this.content[name];
215215
delete this.content[name];
216216
return ok;
217217
};

0 commit comments

Comments
 (0)