Fixed problems with empty tables, bumped to v4
This commit is contained in:
parent
715ac03c3b
commit
9d2bfc599d
4 changed files with 13 additions and 1 deletions
4
area.go
4
area.go
|
|
@ -45,6 +45,10 @@ func AreaRetrieve() (areas []Area, err error) { // {{{
|
|||
return
|
||||
}
|
||||
|
||||
if jsonData == nil {
|
||||
return
|
||||
}
|
||||
|
||||
err = json.Unmarshal(jsonData, &areas)
|
||||
if err != nil {
|
||||
err = re.Wrap(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue