| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2516,7 +2516,7 @@ function realpathSync(p, options) { | |||
| 2516 | 2516 | } | |
| 2517 | 2517 | resolvedLink = pathModule.resolve(previous, linkTarget); | |
| 2518 | 2518 | ||
| 2519 | - if (cache) cache.set(base, resolvedLink); | ||
| 2519 | + cache?.set(base, resolvedLink); | ||
| 2520 | 2520 | if (!isWindows) seenLinks[id] = linkTarget; | |
| 2521 | 2521 | } | |
| 2522 | 2522 | ||
@@ -3041,8 +3041,7 @@ ObjectDefineProperties(fs, { | |||
| 3041 | 3041 | configurable: true, | |
| 3042 | 3042 | enumerable: true, | |
| 3043 | 3043 | get() { | |
| 3044 | - if (promises === null) | ||
| 3045 | - promises = require('internal/fs/promises').exports; | ||
| 3044 | + promises ??= require('internal/fs/promises').exports; | ||
| 3046 | 3045 | return promises; | |
| 3047 | 3046 | } | |
| 3048 | 3047 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments