Skip to content

Commit

Permalink
handle no results
Browse files Browse the repository at this point in the history
  • Loading branch information
eddier committed Apr 25, 2019
1 parent 102abde commit 48b046f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/searchResult.js
Expand Up @@ -57,7 +57,7 @@ export default class SearchResult {
let response = await this.client._search(query)

// If we've reached the last page, keep track and exit
if (response.results.length === 0) {
if (!response.results) {
this.done = true
return Promise.resolve([])
}
Expand Down

0 comments on commit 48b046f

Please sign in to comment.