This is an automated email from the ASF dual-hosted git repository.

vterentev pushed a commit to branch fix-playground-precommit
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 6c0a439f6cde666af8784a02452a78c1281100b3
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Thu Feb 12 14:55:18 2026 +0400

    Update go linter version
---
 playground/backend/cmd/server/controller.go | 2 +-
 playground/backend/cmd/server/server.go     | 1 -
 playground/backend/env_setup.sh             | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/playground/backend/cmd/server/controller.go 
b/playground/backend/cmd/server/controller.go
index f788f2e613f..29fa4de5ff2 100644
--- a/playground/backend/cmd/server/controller.go
+++ b/playground/backend/cmd/server/controller.go
@@ -491,7 +491,7 @@ func (controller *playgroundController) SaveSnippet(ctx 
context.Context, req *pb
                logger.Error("SaveSnippet(): the runner is trying to save the 
snippet")
                return nil, cerrors.InvalidArgumentError(errorTitleSaveSnippet, 
"The runner doesn't support snippets")
        }
-       if req.Files == nil || len(req.Files) == 0 {
+       if len(req.Files) == 0 {
                logger.Error("SaveSnippet(): files are empty")
                return nil, cerrors.InvalidArgumentError(errorTitleSaveSnippet, 
"Snippet must have files")
        }
diff --git a/playground/backend/cmd/server/server.go 
b/playground/backend/cmd/server/server.go
index cdac6a440f7..404de7c9707 100644
--- a/playground/backend/cmd/server/server.go
+++ b/playground/backend/cmd/server/server.go
@@ -18,7 +18,6 @@ package main
 import (
        "beam.apache.org/playground/backend/internal/external_functions"
        "context"
-       "fmt"
        "github.com/improbable-eng/grpc-web/go/grpcweb"
        "google.golang.org/grpc"
        "os"
diff --git a/playground/backend/env_setup.sh b/playground/backend/env_setup.sh
index 4fdecbb4f75..f2f8776fa19 100755
--- a/playground/backend/env_setup.sh
+++ b/playground/backend/env_setup.sh
@@ -14,7 +14,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-GO_LINTER_VERSION=1.59.1
+GO_LINTER_VERSION=2.9.0
 
 # Install GO Linter
 #wget 
https://github.com/golangci/golangci-lint/releases/download/v1.42.1/golangci-lint-$GO_LINTER_VERSION-linux-amd64.deb

Reply via email to