Skip to content

Commit

Permalink
refactor: Update HtmlBeautifier class to handle error cases and impro…
Browse files Browse the repository at this point in the history
…ve code readability
  • Loading branch information
aliariff committed Aug 31, 2024
1 parent 714dc08 commit d4a4ae0
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 @@ -233,7 +233,7 @@ export default class HtmlBeautifier {
const eol = vscode.workspace.getConfiguration().get("files.eol");

// Determine newline character(s) based on the 'files.eol' setting and the platform
let newline = eol === "auto" ? (this.isWindows() ? "\r\n" : "\n") : eol;
const newline = eol === "auto" ? (this.isWindows() ? "\r\n" : "\n") : eol;

// Append the newline to the result
result += newline;
Expand Down

0 comments on commit d4a4ae0

Please sign in to comment.