Skip to content

Commit

Permalink
Fix missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthachatterjee committed Dec 17, 2020
1 parent bea9ac7 commit 6375542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-source-npm-package-search/src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const searchIndex = client.initIndex(`npm-search`)
exports.browse = ({ ...params }) => {
let hits = []

searchIndex
return searchIndex
.browseObjects({
batch: batch => (hits = hits.concat(batch)),
...params,
Expand Down

0 comments on commit 6375542

Please sign in to comment.