Skip to content

Commit 1e2f461

Browse files
committed
reuse isWindows method
1 parent 28ee089 commit 1e2f461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/formatter/htmlbeautifier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export default class HtmlBeautifier {
194194
// Set the newline character(s) based on the 'files.eol' setting and the platform
195195
let newline = eol;
196196
if (eol === "auto") {
197-
newline = process.platform === "win32" ? "\r\n" : "\n";
197+
newline = this.isWindows() ? "\r\n" : "\n";
198198
}
199199

200200
// Append the newline to the result

0 commit comments

Comments
 (0)