Skip to content

Commit

Permalink
chore(pinpoint-phone-number): fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Sep 27, 2024
1 parent 0ab4b39 commit ad4d880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/pinpoint-phone-number.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (r *PinpointPhoneNumber) Properties() types.Properties {
}

func (r *PinpointPhoneNumber) Remove(_ context.Context) error {
if r.settings.GetBool("DisableDeletionProtection") {
if r.settings.GetBool("DisableDeletionProtection") && ptr.ToBool(r.deletionProtectionEnabled) {
_, err := r.svc.UpdatePhoneNumber(&pinpointsmsvoicev2.UpdatePhoneNumberInput{
PhoneNumberId: r.ID,
DeletionProtectionEnabled: ptr.Bool(false),
Expand All @@ -99,8 +99,8 @@ func (r *PinpointPhoneNumber) Remove(_ context.Context) error {
return nil
}

func (r *PinpointPhoneNumber) Settings(settings *settings.Setting) {
r.settings = settings
func (r *PinpointPhoneNumber) Settings(setting *settings.Setting) {
r.settings = setting
}

func (r *PinpointPhoneNumber) String() string {
Expand Down

0 comments on commit ad4d880

Please sign in to comment.