Skip to content

Commit d63b9e4

Browse files
Refactor exec utility to remove stderr check and streamline output handling
1 parent 0bd25c4 commit d63b9e4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/utils/filesystem.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ export const readConfig = (config: Config, userConfigPath: string): Config => {
4646
export const exec = async (command: string): Promise<string> => {
4747
const execAsync = promisify(nodeExec)
4848

49-
const { stdout, stderr } = await execAsync(command)
50-
51-
if (stderr !== '') {
52-
throw new Error(stderr)
53-
}
49+
const { stdout } = await execAsync(command)
5450

5551
return stdout.toString().trim()
5652
}

0 commit comments

Comments
 (0)