Skip to content

Commit

Permalink
Remove unused region var
Browse files Browse the repository at this point in the history
  • Loading branch information
yorinasub17 committed Mar 11, 2022
1 parent 32bc385 commit cebb784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ func GetAllResources(targetRegions []string, excludeAfter time.Time, resourceTyp
// CloudWatchLogGroup
cloudwatchLogGroups := CloudWatchLogGroups{}
if IsNukeable(cloudwatchLogGroups.ResourceName(), resourceTypes) {
lgNames, err := getAllCloudWatchLogGroups(session, region, excludeAfter, configObj)
lgNames, err := getAllCloudWatchLogGroups(session, excludeAfter, configObj)
if err != nil {
return nil, errors.WithStackTrace(err)
}
Expand Down
2 changes: 1 addition & 1 deletion aws/cloudwatch_loggroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/hashicorp/go-multierror"
)

func getAllCloudWatchLogGroups(session *session.Session, region string, excludeAfter time.Time, configObj config.Config) ([]*string, error) {
func getAllCloudWatchLogGroups(session *session.Session, excludeAfter time.Time, configObj config.Config) ([]*string, error) {
svc := cloudwatchlogs.New(session)

allLogGroups := []*string{}
Expand Down

0 comments on commit cebb784

Please sign in to comment.