Skip to content

Commit

Permalink
squash: adjust .at()
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Jul 20, 2023
1 parent 4e74174 commit cf63c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ function warnOnNonPortableTemplate(template) {
// end with 'X' because they are handled inconsistently across platforms.
if (nonPortableTemplateWarn &&
((typeof template === 'string' && StringPrototypeEndsWith(template, 'X')) ||
TypedArrayPrototypeAt(template, -1) === 0x58)) {
(typeof template !== 'string' && TypedArrayPrototypeAt(template, -1) === 0x58))) {
process.emitWarning('mkdtemp() templates ending with X are not portable. ' +
'For details see: https://nodejs.org/api/fs.html');
nonPortableTemplateWarn = false;
Expand Down

0 comments on commit cf63c24

Please sign in to comment.