Address linter issues
Signed-off-by: Bernd Verst <github@bernd.dev>
This commit is contained in:
parent
bc34fd20c0
commit
e7bcf0b785
|
@ -17,8 +17,6 @@ type arnEquals struct {
|
|||
AwsSourceArn string `json:"aws:SourceArn"`
|
||||
}
|
||||
|
||||
type awsSourceArn []string
|
||||
|
||||
type condition struct {
|
||||
ValueArnEquals arnEquals `json:"ArnEquals"`
|
||||
}
|
||||
|
@ -27,9 +25,6 @@ type principal struct {
|
|||
Service string
|
||||
}
|
||||
|
||||
type arn struct {
|
||||
}
|
||||
|
||||
type statement struct {
|
||||
Effect string
|
||||
Principal principal
|
||||
|
@ -51,7 +46,6 @@ func (p *policy) tryInsertCondition(sqsArn string, snsArn string) bool {
|
|||
if s.Condition.ValueArnEquals.AwsSourceArn == snsArn {
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
// insert a new statement if no statement for the sqsArn or is new sns subscriber
|
||||
|
|
Loading…
Reference in New Issue