Skip to content

Commit

Permalink
Removed unneeded cast
Browse files Browse the repository at this point in the history
  • Loading branch information
puf committed Mar 17, 2021
1 parent c50fc29 commit 49c1d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/geofire-common/src/index.ts
Expand Up @@ -348,7 +348,7 @@ export function geohashQueryBounds(center: Geopoint, radius: number): GeohashRan
const geohashPrecision = Math.ceil(queryBits / BITS_PER_CHAR);
const coordinates = boundingBoxCoordinates(center, radius);
const queries = coordinates.map((coordinate) => {
return geohashQuery(geohashForLocation(coordinate as Geopoint, geohashPrecision), queryBits);
return geohashQuery(geohashForLocation(coordinate, geohashPrecision), queryBits);
});
// remove duplicates
return queries.filter((query, index) => {
Expand Down

0 comments on commit 49c1d04

Please sign in to comment.