Skip to content

Commit

Permalink
Include review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
hntrmrrs committed Apr 15, 2021
1 parent 72da7c9 commit 3fdcbe2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resources/guardduty.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package resources

import (
"fmt"

"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/guardduty"
"github.com/rebuy-de/aws-nuke/pkg/types"
Expand Down Expand Up @@ -48,10 +46,10 @@ func (detector *GuardDutyDetector) Remove() error {

func (detector *GuardDutyDetector) Properties() types.Properties {
properties := types.NewProperties()
properties.Set("DetectorId", detector.id)
properties.Set("DetectorID", detector.id)
return properties
}

func (detector *GuardDutyDetector) String() string {
return fmt.Sprintf("DetectorId: %s", *detector.id)
return *detector.id
}

0 comments on commit 3fdcbe2

Please sign in to comment.