Fix gometalineter failures
This commit is contained in:
parent
680182a177
commit
2fefde651a
|
@ -167,14 +167,9 @@ func (p *logGroupProvider) Delete(ctx context.Context, id resource.ID) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Printf("Deleting Cloudwatch LogGroup '%v'\n", id)
|
||||
_, err = p.ctx.CloudwatchLogs().DeleteLogGroup(&awscloudwatch.DeleteLogGroupInput{
|
||||
LogGroupName: aws.String(logGroupName),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -160,15 +160,10 @@ func (p *logSubscriptionFilterProvider) Delete(ctx context.Context, id resource.
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Printf("Deleting Cloudwatch LogSubscriptionFilter '%v'\n", id)
|
||||
_, err = p.ctx.CloudwatchLogs().DeleteSubscriptionFilter(&awscloudwatch.DeleteSubscriptionFilterInput{
|
||||
LogGroupName: aws.String(logGroupName),
|
||||
FilterName: aws.String(filterName),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue