Skip to content

Commit

Permalink
Fix leaf-directories by removing extra length check
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy-geek authored Dec 18, 2021
1 parent c37d1f7 commit f460055
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pmtiles/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ func (loop Loop) Get(path string) (int, map[string]string, []byte) {
y, _ := strconv.ParseUint(res[4], 10, 32)
coord := Zxy{Z: uint8(z), X: uint32(x), Y: uint32(y)}

if len(root_value.directory.Entries) == 0 {
return 404, headers, nil
}

var tile []byte
if offsetlen, ok := root_value.directory.Entries[coord]; ok {
tile_req := Request{kind: Tile, key: Key{name: name, rng: offsetlen}, value: make(chan Datum, 1)}
Expand Down

0 comments on commit f460055

Please sign in to comment.