Address linter issues

Signed-off-by: Bernd Verst <github@bernd.dev>
This commit is contained in:
Bernd Verst 2023-01-31 13:10:35 -08:00
parent bc34fd20c0
commit e7bcf0b785
1 changed files with 0 additions and 6 deletions

View File

@ -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