Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 3fdcbe2

Browse files
committed
Include review suggestions
1 parent 72da7c9 commit 3fdcbe2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

resources/guardduty.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package resources
22

33
import (
4-
"fmt"
5-
64
"github.com/aws/aws-sdk-go/aws/session"
75
"github.com/aws/aws-sdk-go/service/guardduty"
86
"github.com/rebuy-de/aws-nuke/pkg/types"
@@ -48,10 +46,10 @@ func (detector *GuardDutyDetector) Remove() error {
4846

4947
func (detector *GuardDutyDetector) Properties() types.Properties {
5048
properties := types.NewProperties()
51-
properties.Set("DetectorId", detector.id)
49+
properties.Set("DetectorID", detector.id)
5250
return properties
5351
}
5452

5553
func (detector *GuardDutyDetector) String() string {
56-
return fmt.Sprintf("DetectorId: %s", *detector.id)
54+
return *detector.id
5755
}

0 commit comments

Comments
 (0)