Fixed problems with empty tables, bumped to v4

This commit is contained in:
Magnus Åhall 2024-05-01 21:44:53 +02:00
parent 715ac03c3b
commit 9d2bfc599d
4 changed files with 13 additions and 1 deletions

View file

@ -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)