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
|
|
@ -55,6 +55,10 @@ func ProblemsRetrieve() (problems []Problem, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
if jsonBody == nil {
|
||||
return
|
||||
}
|
||||
|
||||
err = json.Unmarshal(jsonBody, &problems)
|
||||
if err != nil {
|
||||
err = we.Wrap(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue