fixed nil pointer when no API entry found
This commit is contained in:
parent
8ce29414f4
commit
1591816684
4
api.go
4
api.go
@ -90,6 +90,10 @@ func requestPaged[R any](api *Api, ctx context.Context, query string, vars map[s
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if resp.Data.Page == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
for _, value := range resp.Data.Page.Data() {
|
for _, value := range resp.Data.Page.Data() {
|
||||||
value := value
|
value := value
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user