Handle json decoding errors
This commit is contained in:
parent
54c6e88ae5
commit
3b5f8a0934
1 changed files with 1 additions and 1 deletions
|
@ -60,6 +60,6 @@ func scryfallSearch(query string) (results CardSearchResults, err error) {
|
||||||
}
|
}
|
||||||
defer response.Body.Close()
|
defer response.Body.Close()
|
||||||
|
|
||||||
json.NewDecoder(response.Body).Decode(&results)
|
err = json.NewDecoder(response.Body).Decode(&results)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue