You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/moritz/Projects/oidc/configuration.go:63:24: error: Potential nil panic detected. Observed nil flow from source to dereference point:
-> http/client.go:644:12: unassigned variable `resp` returned from `do()` in position 0
-> http/client.go:590:9: result 0 of `do()` returned from `Do()` in position 0
-> http/client.go:488:9: result 0 of `Do()` returned from `Get()` in position 0
-> http/client.go:457:9: result 0 of `Get()` returned from `Get()` in position 0
-> oidc/configuration.go:63:24: result 0 of `Get()` accessed field `Body`
err = json.NewDecoder(file.Body).Decode(cfg) is (to my understanding) well-guarded.
The text was updated successfully, but these errors were encountered:
Sorry, I should have clarified: urlsToTry is always set to have two elements. Both of which are guaranteed to be valid URLs through the url.URL type. But even if that was possible, the trace would be wrong for that case.
err = json.NewDecoder(file.Body).Decode(cfg)
is (to my understanding) well-guarded.The text was updated successfully, but these errors were encountered: