| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bf6aa53 commit 490f15a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1179,15 +1179,8 @@ async function mkdtemp(prefix, options) { | |||
| 1179 | 1179 | prefix = getValidatedPath(prefix, 'prefix'); | |
| 1180 | 1180 | warnOnNonPortableTemplate(prefix); | |
| 1181 | 1181 | ||
| 1182 | - let path; | ||
| 1183 | - if (typeof prefix === 'string') { | ||
| 1184 | - path = `${prefix}XXXXXX`; | ||
| 1185 | - } else { | ||
| 1186 | - path = Buffer.concat([prefix, Buffer.from('XXXXXX')]); | ||
| 1187 | - } | ||
| 1188 | - | ||
| 1189 | 1182 | return await PromisePrototypeThen( | |
| 1190 | - binding.mkdtemp(path, options.encoding, kUsePromises), | ||
| 1183 | + binding.mkdtemp(prefix, options.encoding, kUsePromises), | ||
| 1191 | 1184 | undefined, | |
| 1192 | 1185 | handleErrorFromBinding, | |
| 1193 | 1186 | ); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments