Skip to content

Commit 2dc78ae

Browse files
committed
Golangci-lint update (ineffassign linter)
internal/controller/postgrescluster/pki_test.go:303:21: ineffectual assignment to err (ineffassign) intent, existing, err := createInstanceSecrets(ctx, tClient, instance, initialRoot) internal/controller/postgrescluster/patroni_test.go:363:2: ineffectual assignment to ctx (ineffassign) ctx := context.Background()
1 parent 205121b commit 2dc78ae

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

internal/controller/postgrescluster/patroni_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ func TestPatroniReplicationSecret(t *testing.T) {
342342
}
343343

344344
func TestReconcilePatroniStatus(t *testing.T) {
345-
ctx := context.Background()
346-
347345
tEnv, tClient, cfg := setupTestEnv(t, ControllerName)
348346
t.Cleanup(func() { teardownTestEnv(t, tEnv) })
349347
r := &Reconciler{}

internal/controller/postgrescluster/pki_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ func TestReconcileCerts(t *testing.T) {
250250
}
251251

252252
intent, existing, err := createInstanceSecrets(ctx, tClient, instance, initialRoot)
253+
assert.NilError(t, err)
253254

254255
// apply the secret changes
255256
err = errors.WithStack(r.apply(ctx, existing))

0 commit comments

Comments
 (0)