Skip to content

Commit c5fd69d

Browse files
committed
fix linting errors
1 parent 2ba50c1 commit c5fd69d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ linters:
1111
- forcetypeassert
1212
- gofmt
1313
- gosimple
14+
- govet
1415
- ineffassign
1516
- makezero
1617
- misspell
@@ -22,7 +23,6 @@ linters:
2223
- unconvert
2324
- unparam
2425
- unused
25-
- vet
2626

2727
run:
2828
# Prevent false positive timeouts in CI

internal/privatestate/data.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ func (d *Data) Bytes(ctx context.Context) ([]byte, diag.Diagnostics) {
7373
diags.AddError(
7474
"Error Encoding Private State",
7575
fmt.Sprintf("An error was encountered when validating private state value."+
76-
fmt.Sprintf("The value associated with key %q is is not valid JSON.\n\n", k)+
77-
"This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer."),
76+
"The value associated with key %q is is not valid JSON.\n\n"+
77+
"This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer.", k),
7878
)
7979

8080
tflog.Error(ctx, "error encoding private state: invalid JSON value", map[string]interface{}{"key": k, "value": v})

0 commit comments

Comments
 (0)