Skip to content

Commit 287cfc0

Browse files
committed
Remove unused debug code
1 parent e571304 commit 287cfc0

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

internal/aws/iam_evaluation/policy_parser.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,7 @@ func ParseRoleTrustPolicy(policy string) (*Policy, error) {
3131
}
3232
resultPolicy.Statements = append(resultPolicy.Statements, statement)
3333
}
34-
35-
resultPolicy.Authorize(&AuthorizationContext{
36-
Action: "sts:AssumeRole",
37-
Principal: &Principal{
38-
Type: PrincipalTypeAWS,
39-
ID: "arn:aws:iam::123456789012:root",
40-
},
41-
ContextKeys: map[string]string{
42-
"aws:SourceIP": "D",
43-
},
44-
})
45-
34+
4635
return &resultPolicy, nil
4736
}
4837

0 commit comments

Comments
 (0)