From f4240be2060124148f9739a14d8c863651c1eefe Mon Sep 17 00:00:00 2001 From: Janhavi Gupta Date: Wed, 16 Oct 2024 05:23:14 +0000 Subject: [PATCH] Go: Fixing the version of staticcheck Signed-off-by: Janhavi Gupta --- go/Makefile | 2 +- go/integTest/glide_test_suite_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/Makefile b/go/Makefile index b15d198771..e240900696 100644 --- a/go/Makefile +++ b/go/Makefile @@ -14,7 +14,7 @@ install-dev-tools-go1.22: go install github.com/vakenbolt/go-test-report@v0.9.3 go install mvdan.cc/gofumpt@v0.6.0 go install github.com/segmentio/golines@v0.12.2 - go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 + go install honnef.co/go/tools/cmd/staticcheck@latest install-dev-tools-go1.22.0: install-dev-tools-go1.22 diff --git a/go/integTest/glide_test_suite_test.go b/go/integTest/glide_test_suite_test.go index e2f51e67f6..3f0c5ef263 100644 --- a/go/integTest/glide_test_suite_test.go +++ b/go/integTest/glide_test_suite_test.go @@ -96,7 +96,7 @@ func runClusterManager(suite *GlideTestSuite, args []string, ignoreExitCode bool suite.T().Fatalf("Unexpected error while executing cluster_manager.py: %s", err.Error()) } - if exitError.Stderr != nil && len(exitError.Stderr) > 0 { + if len(exitError.Stderr) > 0 { suite.T().Logf("cluster_manager.py stderr:\n====\n%s\n====\n", string(exitError.Stderr)) }