diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-16 06:40:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 01:40:30 -0400 |
commit | 5ac728a5f1af575d011c2143f5c9273b0fb4c5bb (patch) | |
tree | dfba0fdb3ba17989fd6c3af89ce17a0a71a4df0c /std/node/module.ts | |
parent | 6441852a1d5eef0d05ed172a00bef58ad5988842 (diff) |
refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces (#4763)
Diffstat (limited to 'std/node/module.ts')
-rw-r--r-- | std/node/module.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/module.ts b/std/node/module.ts index 522eaec7e..138cf916e 100644 --- a/std/node/module.ts +++ b/std/node/module.ts @@ -54,7 +54,7 @@ function stat(filename: string): StatResult { } try { const info = Deno.statSync(filename); - const result = info.isFile() ? 0 : 1; + const result = info.isFile ? 0 : 1; if (statCache !== null) statCache.set(filename, result); return result; } catch (e) { |