Skip to content

Commit d4bed10

Browse files
authored
fix: golangci-lint (#2831)
1 parent 3a6ad01 commit d4bed10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/services/container/container.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ func ResourceContainerUpdate(ctx context.Context, d *schema.ResourceData, m inte
352352
}
353353

354354
if d.HasChanges("max_concurrency") {
355-
req.MaxConcurrency = scw.Uint32Ptr(uint32(d.Get("max_concurrency").(int)))
355+
req.MaxConcurrency = scw.Uint32Ptr(uint32(d.Get("max_concurrency").(int))) //nolint:staticcheck
356356
}
357357

358358
if d.HasChanges("protocol") {

internal/services/container/helpers_container.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func setCreateContainerRequest(d *schema.ResourceData, region scw.Region) (*cont
108108
}
109109

110110
if maxConcurrency, ok := d.GetOk("max_concurrency"); ok {
111-
req.MaxConcurrency = scw.Uint32Ptr(uint32(maxConcurrency.(int)))
111+
req.MaxConcurrency = scw.Uint32Ptr(uint32(maxConcurrency.(int))) //nolint:staticcheck
112112
}
113113

114114
if sandbox, ok := d.GetOk("sandbox"); ok {

internal/services/mnq/helpers_mnq_queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func NewSQSClient(httpClient *http.Client, region string, endpoint string, acces
6868
return sqs.New(s), nil
6969
}
7070

71-
func NATSClientWithRegion( //nolint:ireturn
71+
func NATSClientWithRegion( //nolint:ireturn,nolintlint
7272
d *schema.ResourceData,
7373
m interface{},
7474
) (nats.JetStreamContext, scw.Region, error) {

0 commit comments

Comments
 (0)