A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/e0054ee0a7 below:

ensure consistency for mkdtemp in both fs and fs/promises · nodejs/node@e0054ee · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-8

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-8

lines changed Original file line number Diff line number Diff line change

@@ -1175,15 +1175,8 @@ async function mkdtemp(prefix, options) {

1175 1175

prefix = getValidatedPath(prefix, 'prefix');

1176 1176

warnOnNonPortableTemplate(prefix);

1177 1177 1178 -

let path;

1179 -

if (typeof prefix === 'string') {

1180 -

path = `${prefix}XXXXXX`;

1181 -

} else {

1182 -

path = Buffer.concat([prefix, Buffer.from('XXXXXX')]);

1183 -

}

1184 - 1185 1178

return await PromisePrototypeThen(

1186 -

binding.mkdtemp(path, options.encoding, kUsePromises),

1179 +

binding.mkdtemp(prefix, options.encoding, kUsePromises),

1187 1180

undefined,

1188 1181

handleErrorFromBinding,

1189 1182

);

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4