diff --git a/internal/cloud/backend.go b/internal/cloud/backend.go index 9d7d2e5fc..09a9995c7 100644 --- a/internal/cloud/backend.go +++ b/internal/cloud/backend.go @@ -922,7 +922,7 @@ func (b *Cloud) VerifyWorkspaceTerraformVersion(workspaceName string) tfdiags.Di // If the workspace has remote operations disabled, the remote Terraform // version is effectively meaningless, so we'll skip version verification. - if workspace.Operations == false { + if !workspace.Operations { return nil } @@ -1002,6 +1002,7 @@ func (b *Cloud) IsLocalOperations() bool { // as a helper to wrap any potentially colored strings. // // TODO SvH: Rename this back to Colorize as soon as we can pass -no-color. +//lint:ignore U1000 see above todo func (b *Cloud) cliColorize() *colorstring.Colorize { if b.CLIColor != nil { return b.CLIColor diff --git a/internal/cloud/backend_apply_test.go b/internal/cloud/backend_apply_test.go index 629074e0a..1af4b4726 100644 --- a/internal/cloud/backend_apply_test.go +++ b/internal/cloud/backend_apply_test.go @@ -1592,8 +1592,9 @@ func TestCloud_applyVersionCheck(t *testing.T) { } // RUN: prepare the apply operation and run it - op, configCleanup, done := testOperationApply(t, "./testdata/apply") + op, configCleanup, opDone := testOperationApply(t, "./testdata/apply") defer configCleanup() + defer opDone(t) streams, done := terminal.StreamsForTesting(t) view := views.NewOperation(arguments.ViewHuman, false, views.NewView(streams))