From 219714a18e2650cecacf2b94afff802077fcb536 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 7 Jan 2021 13:50:59 -0600 Subject: [PATCH] Fix linter problems --- server/grpc_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/grpc_test.go b/server/grpc_test.go index 39aafae8b..77064b4ac 100644 --- a/server/grpc_test.go +++ b/server/grpc_test.go @@ -1024,7 +1024,6 @@ func TestCRUDIndexes(t *testing.T) { if len(schema) != 2 { t.Fatal("Schema should include two indexes") } - schema = m.API.Schema(ctx) _ = m.API.DeleteIndex(ctx, "testindex1") @@ -1082,14 +1081,14 @@ func TestCRUDIndexes(t *testing.T) { } // Check errors for GetIndex: get index that doesn't exist - resp, err = gh.GetIndex(ctx, &pb.GetIndexRequest{Name: "wrongname"}) + _, err = gh.GetIndex(ctx, &pb.GetIndexRequest{Name: "wrongname"}) errStatus, _ := status.FromError(err) if errStatus.Code() != codes.NotFound { t.Fatalf("Error code should be codes.NotFound, but is %v", errStatus.Code()) } // Check errors for GetIndex: get index with invalid name - resp, err = gh.GetIndex(ctx, &pb.GetIndexRequest{Name: "💩"}) + _, err = gh.GetIndex(ctx, &pb.GetIndexRequest{Name: "💩"}) errStatus, _ = status.FromError(err) if errStatus.Code() != codes.NotFound { t.Fatalf("Error code should be codes.NotFound, but is %v", errStatus.Code())