From 7f29a35fc8264f45452bd68793efabc5963f152e Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Sat, 14 Sep 2024 15:07:33 +0900 Subject: [PATCH] runtime: fix no-useless-ternary Signed-off-by: Sora Morimoto --- runtime/fs_fake.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/fs_fake.js b/runtime/fs_fake.js index 090599a9f5..21a0a0e60c 100644 --- a/runtime/fs_fake.js +++ b/runtime/fs_fake.js @@ -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; };