Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasG77 committed Mar 2, 2022
1 parent 762d77d commit f4cdf22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/searchableCollection/indexes/geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ class GeoIndex {
maxX: point[0],
maxY: point[1]
})
let intermediate = []
for (let i = 0; i < result.length; i++) {
if (query.type[0] == result[i].props.type) {
if (insidePolygon(result[i].coords, point)) {
if (query.type[0] === result[i].props.type) {
if (insidePolygon(result[i].coords, point)) {
return [result[i].props]
}
}
}

return []
}
}
Expand Down

0 comments on commit f4cdf22

Please sign in to comment.