tile panic
This commit is contained in:
parent
2ec79a16cd
commit
3f3a9da23a
@ -33,11 +33,11 @@ func (this *TileDB) GC() {
|
||||
|
||||
func (this *TileDB) GetTile(pos *coords.TileCoords) ([]byte, error) {
|
||||
_, file := this.getDirAndFile(pos)
|
||||
info, err := os.Stat(file)
|
||||
if info != nil && err == nil {
|
||||
info, _ := os.Stat(file)
|
||||
if info != nil {
|
||||
content, err := ioutil.ReadFile(file)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return content, err
|
||||
|
Loading…
Reference in New Issue
Block a user