Skip to content

Commit d4a4ae0

Browse files
committed
refactor: Update HtmlBeautifier class to handle error cases and improve code readability
1 parent 714dc08 commit d4a4ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formatter/htmlbeautifier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export default class HtmlBeautifier {
233233
const eol = vscode.workspace.getConfiguration().get("files.eol");
234234

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

238238
// Append the newline to the result
239239
result += newline;

0 commit comments

Comments
 (0)