chore: fix typo in oidctest package (#13815)

This commit is contained in:
Steven Masley
2024-07-08 14:35:06 +00:00
committed by GitHub
parent bdd2caf95d
commit d9bdef915d
+3 -3
View File
@@ -1423,10 +1423,10 @@ func (f *FakeIDP) getClaims(m *syncmap.Map[string, jwt.MapClaims], key string) (
}
func httpErrorCode(defaultCode int, err error) int {
var stautsErr statusHookError
var statusErr statusHookError
status := defaultCode
if errors.As(err, &stautsErr) {
status = stautsErr.HTTPStatusCode
if errors.As(err, &statusErr) {
status = statusErr.HTTPStatusCode
}
return status
}