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; };