Skip to content

Commit

Permalink
Merge pull request #12 from dabutvin/no-components
Browse files Browse the repository at this point in the history
exit early if no components found
  • Loading branch information
dabutvin authored Feb 4, 2019
2 parents f98858f + e61bf59 commit 9576aa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ async function go() {
`npm/npmjs/${x.name}/${x.version}` :
`npm/npmjs/-/${x.name}/${x.version}`
)
if (!coordinates.length) {
console.log('no components detected')
return
}
const clearlydefinedSource = new ClearlyDefinedSource(JSON.stringify({
coordinates
}))
Expand Down

0 comments on commit 9576aa5

Please sign in to comment.