Skip to content

Commit 85c275b

Browse files
sinkhahaaduh95
authored andcommitted
lib: use existing isWindows variable
1 parent 92a938b commit 85c275b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ const fatalExceptionStackEnhancers = {
787787
// However, fatal error are handled differently and we cannot easily
788788
// highlight them. On Windows, detecting whether a console supports
789789
// ANSI escape sequences is not reliable.
790-
if (process.platform === 'win32') {
790+
if (isWindows) {
791791
const info = internalBinding('os').getOSInformation();
792792
const ver = ArrayPrototypeMap(StringPrototypeSplit(info[2], '.'),
793793
Number);

0 commit comments

Comments
 (0)