Fix gometalineter failures

This commit is contained in:
Luke Hoban 2017-06-28 16:01:31 -07:00
parent 680182a177
commit 2fefde651a
2 changed files with 2 additions and 12 deletions

View file

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

View file

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