Skip to content

Commit

Permalink
Correct the array init syntax (#72)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor authored Feb 2, 2024
1 parent 8e99be3 commit a42181d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/octosts/trust_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (tp *TrustPolicy) CheckToken(token *oidc.IDToken) (Actor, error) {
act := Actor{
Issuer: token.Issuer,
Subject: token.Subject,
Claims: make([]Claim, len(tp.claimPattern)),
Claims: make([]Claim, 0, len(tp.claimPattern)),
}
// Check the issuer.
if tp.issuerPattern != nil {
Expand Down

0 comments on commit a42181d

Please sign in to comment.