Skip to content

Commit

Permalink
Merge pull request #38 from electron/exec-fix
Browse files Browse the repository at this point in the history
fix: exec `toString` test issue
  • Loading branch information
felixrieseberg authored Jul 23, 2018
2 parents d3f3c04 + f58058a commit 2e7c9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function exec(dir: string, cliArgs: string): Promise<string> {
reject(error);
}

resolve(result.toString());
resolve(typeof result === 'string' ? result : `${result}`);
});
});
}
Expand Down

0 comments on commit 2e7c9ba

Please sign in to comment.