Skip to content

Commit 65354f8

Browse files
committed
fix linter
1 parent d4a4afd commit 65354f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/services/baremetal/helpers.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import (
55
"context"
66
"errors"
77
"fmt"
8-
"github.com/scaleway/scaleway-sdk-go/validation"
98
"sort"
109
"time"
1110

1211
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1312
"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1"
1413
baremetalV3 "github.com/scaleway/scaleway-sdk-go/api/baremetal/v3"
1514
"github.com/scaleway/scaleway-sdk-go/scw"
15+
"github.com/scaleway/scaleway-sdk-go/validation"
1616
"github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors"
1717
"github.com/scaleway/terraform-provider-scaleway/v2/internal/locality"
1818
"github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/regional"
@@ -245,6 +245,7 @@ func customDiffOffer() func(ctx context.Context, diff *schema.ResourceDiff, i in
245245

246246
newOfferID := regional.ExpandID(newOffer.(string))
247247
oldOfferID := regional.ExpandID(oldOffer.(string))
248+
248249
if validation.IsUUID(oldOffer.(string)) {
249250
oldOfferInfo, err := api.GetOfferByName(&baremetal.GetOfferByNameRequest{
250251
OfferName: oldOffer.(string),
@@ -253,6 +254,7 @@ func customDiffOffer() func(ctx context.Context, diff *schema.ResourceDiff, i in
253254
if err != nil {
254255
return errors.New("can not find offer" + err.Error())
255256
}
257+
256258
oldOfferID = regional.ExpandID(oldOfferInfo.ID)
257259
}
258260

@@ -264,6 +266,7 @@ func customDiffOffer() func(ctx context.Context, diff *schema.ResourceDiff, i in
264266
if err != nil {
265267
return errors.New("can not find offer" + err.Error())
266268
}
269+
267270
oldOfferID = regional.ExpandID(newOfferInfo.ID)
268271
}
269272

0 commit comments

Comments
 (0)