Skip to content

Commit c8ac8c5

Browse files
authored
bump: golangci-lint v3 (#1684)
1 parent a92fe9e commit c8ac8c5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
steps:
99
- uses: actions/checkout@v3
1010
- name: golangci-lint
11-
uses: golangci/golangci-lint-action@v2
11+
uses: golangci/golangci-lint-action@v3
1212
with:
1313
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
14-
version: v1.46.2
14+
version: latest
1515
args: --timeout 5m

scaleway/provider_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ func cassetteSensitiveFieldsAnonymizer(i *cassette.Interaction) error {
202202
var jsonBody map[string]interface{}
203203
err := json.Unmarshal([]byte(i.Response.Body), &jsonBody)
204204
if err != nil {
205+
//nolint:nilerr
205206
return nil
206207
}
207208
for key, value := range SensitiveFields {
@@ -338,13 +339,13 @@ func TestAccScalewayProvider_SSHKeys(t *testing.T) {
338339
{
339340
Config: fmt.Sprintf(`
340341
resource "scaleway_account_ssh_key" "prod" {
341-
provider = "prod"
342+
provider = "prod"
342343
name = "%[1]s"
343344
public_key = "%[2]s"
344345
}
345346
346347
resource "scaleway_account_ssh_key" "dev" {
347-
provider = "dev"
348+
provider = "dev"
348349
name = "%[1]s"
349350
public_key = "%[2]s"
350351
}
@@ -397,7 +398,7 @@ func TestAccScalewayProvider_InstanceIPZones(t *testing.T) {
397398
resource scaleway_instance_ip dev {
398399
provider = "dev"
399400
}
400-
401+
401402
resource scaleway_instance_ip prod {
402403
provider = "prod"
403404
}

0 commit comments

Comments
 (0)