Skip to content

Commit

Permalink
reuse isWindows method
Browse files Browse the repository at this point in the history
  • Loading branch information
aliariff committed Aug 24, 2024
1 parent 28ee089 commit 1e2f461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatter/htmlbeautifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default class HtmlBeautifier {
// Set the newline character(s) based on the 'files.eol' setting and the platform
let newline = eol;
if (eol === "auto") {
newline = process.platform === "win32" ? "\r\n" : "\n";
newline = this.isWindows() ? "\r\n" : "\n";
}

// Append the newline to the result
Expand Down

0 comments on commit 1e2f461

Please sign in to comment.