Skip to content

Commit c732685

Browse files
authored
fix: fix the wrong error return value (#1134)
Signed-off-by: drawdrop <[email protected]>
1 parent 2fb6ec2 commit c732685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keycloak/openid_client_authorization_aggregate_policy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationAggregatePolic
5858
var keycloakPolicies []map[string]interface{}
5959
errTwo := keycloakClient.get(ctx, fmt.Sprintf("/realms/%s/clients/%s/authz/resource-server/policy/%s/associatedPolicies", realmId, resourceServerId, policyId), &keycloakPolicies, nil)
6060
if errTwo != nil {
61-
return nil, err
61+
return nil, errTwo
6262
}
6363

6464
for i := 0; i < len(keycloakPolicies); i++ {

0 commit comments

Comments
 (0)