Skip to content

Commit

Permalink
refactor: Simplify HtmlBeautifier command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
aliariff committed Aug 31, 2024
1 parent 9b1ca54 commit 8ffe486
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/formatter/htmlbeautifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default class HtmlBeautifier {
...shellOptions,
});

const fullCommand = `${this.exe} ${this.cliOptions.join(" ")} (cwd: ${
vscode.workspace.rootPath || __dirname
}) with custom env: ${JSON.stringify(this.customEnvVars)}`;
const fullCommand = `${this.exe} ${this.cliOptions.join(
" "
)} with custom env: ${JSON.stringify(this.customEnvVars)}`;
this.logChannel.info(`Formatting ERB with command: ${fullCommand}`);

if (!htmlbeautifier.stdin || !htmlbeautifier.stdout) {
Expand Down

0 comments on commit 8ffe486

Please sign in to comment.