Skip to content

Commit

Permalink
fix(printStackResources): prevent error from being thrown when resour…
Browse files Browse the repository at this point in the history
…ces.length == 0
  • Loading branch information
jedwards1211 committed Jan 24, 2019
1 parent a2c6db8 commit f598967
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/printStackResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function printStackResources({
stream?: ?Writable,
resources: $ReadOnlyArray<$ReadOnly<Resource>>,
}) {
if (!resources.length) return
if (!stream) stream = process.stderr

const data = resources.map(
Expand Down

0 comments on commit f598967

Please sign in to comment.