Skip to content

Commit

Permalink
Style: More comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Dec 16, 2023
1 parent 19b4133 commit 062a5d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions searchitunes.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ module.exports = async function SearchItunes ( {
const res = await fetch( url, options );
const data = await res.json();

// Empty result
if ( ! data.results || ! data.results.length ) {
throw new Error( 'no results' );
}

// Lookup response
if ( idKey ) {

// Bulk lookup
Expand Down

0 comments on commit 062a5d4

Please sign in to comment.