Skip to content

Commit

Permalink
refactor: use type-safe String() instead of .toString()
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
2 people authored and nathanhleung committed Jan 20, 2021
1 parent 8a79ec6 commit 516a3c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ async function getCliInstallCommand(extraArgs) {
const fullstderr = [];
cli.stdout.on("data", data => {
// not guaranteed to be line-by-line in fact these can be Buffers
fullstdout.push(data.toString());
fullstdout.push(String(data));
});
cli.stderr.on("data", data => {
// not guaranteed to be line-by-line in fact these can be Buffers
fullstderr.push(data.toString());
fullstderr.push(String(data));
});
cli.on("close", code => {
if (code !== 0) {
Expand Down

0 comments on commit 516a3c6

Please sign in to comment.