From 377e856c8f7f80fa6f55f0489bebcf789369ed0b Mon Sep 17 00:00:00 2001 From: pptx704 Date: Mon, 30 Mar 2026 21:28:57 +0600 Subject: [PATCH] Fix lint warnings: drop deprecated Name field from snapshot response, check errcheck in benchmark Co-Authored-By: Claude Sonnet 4.6 --- internal/hostagent/server.go | 1 - internal/id/id_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/hostagent/server.go b/internal/hostagent/server.go index ab016f8..7cd78f4 100644 --- a/internal/hostagent/server.go +++ b/internal/hostagent/server.go @@ -129,7 +129,6 @@ func (s *Server) CreateSnapshot( return nil, connect.NewError(connect.CodeInternal, fmt.Errorf("create snapshot: %w", err)) } return connect.NewResponse(&pb.CreateSnapshotResponse{ - Name: msg.Name, SizeBytes: sizeBytes, }), nil } diff --git a/internal/id/id_test.go b/internal/id/id_test.go index 6fb2394..2000e9c 100644 --- a/internal/id/id_test.go +++ b/internal/id/id_test.go @@ -113,6 +113,6 @@ func BenchmarkParseSandboxID(b *testing.B) { s := FormatSandboxID(id) b.ResetTimer() for i := 0; i < b.N; i++ { - ParseSandboxID(s) + _, _ = ParseSandboxID(s) } }