Skip to content

Commit 9eb530c

Browse files
committed
fix: lint
1 parent 53dbf1e commit 9eb530c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/services/rdb/instance.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m in
336336
if err != nil {
337337
return diag.FromErr(err)
338338
}
339-
id := ""
340-
339+
var id string
341340
if regionalSnapshotID, ok := d.GetOk("snapshot_id"); ok {
342341
haCluster := d.Get("is_ha_cluster").(bool)
343342
nodeType := d.Get("node_type").(string)

internal/services/rdb/waiters.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func waitForRDBReadReplica(ctx context.Context, api *rdb.API, region scw.Region,
5151
}, scw.WithContext(ctx))
5252
}
5353

54-
func waitForRDBSnapshot(ctx context.Context, api *rdb.API, region scw.Region, snapshotId string, timeout time.Duration) (*rdb.Snapshot, error) {
54+
func waitForRDBSnapshot(ctx context.Context, api *rdb.API, region scw.Region, snapshotID string, timeout time.Duration) (*rdb.Snapshot, error) {
5555
retryInterval := defaultWaitRetryInterval
5656
if transport.DefaultWaitRetryInterval != nil {
5757
retryInterval = *transport.DefaultWaitRetryInterval
@@ -60,7 +60,7 @@ func waitForRDBSnapshot(ctx context.Context, api *rdb.API, region scw.Region, sn
6060
return api.WaitForSnapshot(&rdb.WaitForSnapshotRequest{
6161
Region: region,
6262
Timeout: scw.TimeDurationPtr(timeout),
63-
SnapshotID: snapshotId,
63+
SnapshotID: snapshotID,
6464
RetryInterval: &retryInterval,
6565
}, scw.WithContext(ctx))
6666
}

0 commit comments

Comments
 (0)