| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 349d2ed commit 3300d59
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -180,12 +180,13 @@ platform[SymbolToPrimitive] = () => process.platform; | |||
| 180 | 180 | */ | |
| 181 | 181 | function tmpdir() { | |
| 182 | 182 | if (isWindows) { | |
| 183 | - let path = process.env.TEMP || | ||
| 183 | + const path = process.env.TEMP || | ||
| 184 | 184 | process.env.TMP || | |
| 185 | 185 | (process.env.SystemRoot || process.env.windir) + '\\temp'; | |
| 186 | + | ||
| 186 | 187 | if (path.length > 1 && StringPrototypeEndsWith(path, '\\') && | |
| 187 | 188 | !StringPrototypeEndsWith(path, ':\\')) | |
| 188 | - path = StringPrototypeSlice(path, 0, -1); | ||
| 189 | + return StringPrototypeSlice(path, 0, -1); | ||
| 189 | 190 | ||
| 190 | 191 | return path; | |
| 191 | 192 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments