Skip to content

Commit

Permalink
runtime: fix no-useless-ternary
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Sep 14, 2024
1 parent 59b0b4f commit 8eaa8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/fs_fake.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ MlFakeDevice.prototype.is_dir = function (name) {
return this.content[name_slash] ? 1 : 0;
};
MlFakeDevice.prototype.unlink = function (name) {
const ok = this.content[name] ? true : false;
const ok = !!this.content[name];
delete this.content[name];
return ok;
};
Expand Down

0 comments on commit 8eaa8f9

Please sign in to comment.