Skip to content

Commit

Permalink
small fix to use shortened Id if a longer Id (geohash) is provided fo…
Browse files Browse the repository at this point in the history
…r Cell lookup
  • Loading branch information
tingold committed Jan 9, 2025
1 parent 961d5cd commit 7527f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions majortom/mtgrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (g *MajorTomGrid) CellFromId(id string) (*GridCell, error) {
return nil, err
}
for _, cell := range cells {
if cell.Id() == id {
if cell.Id() == searchId {
return &cell, nil
}
}
Expand All @@ -175,7 +175,7 @@ func (g *MajorTomGrid) CellFromId(id string) (*GridCell, error) {
return nil, err
}
for _, cell := range cells {
if cell.Id() == id {
if cell.Id() == searchId {
return &cell, nil
}
}
Expand Down

0 comments on commit 7527f32

Please sign in to comment.