Skip to content

Commit 8786fe6

Browse files
committed
lint
1 parent db4ea16 commit 8786fe6

File tree

4 files changed

+210
-168
lines changed

4 files changed

+210
-168
lines changed

pkg/datastore/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ type ClientOption func(*clientOptionsInternal)
5555
// clientOptionsInternal holds internal client configuration that can be modified by ClientOption.
5656
type clientOptionsInternal struct {
5757
authConfig *auth.Config
58-
baseURL string
5958
logger *slog.Logger
59+
baseURL string
6060
}
6161

6262
// WithEndpoint returns a ClientOption that sets the API base URL.

pkg/datastore/key_range_integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package datastore
22

33
import (
44
"context"
5+
"errors"
56
"fmt"
67
"testing"
78
)
@@ -43,7 +44,7 @@ func TestMock_KeyRangeQuery(t *testing.T) {
4344
for {
4445
key, err := it.Next(nil)
4546
if err != nil {
46-
if err == Done {
47+
if errors.Is(err, Done) {
4748
break
4849
}
4950
t.Fatalf("Next: %v", err)

pkg/datastore/test_helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func TestOptions(metadataURL, apiURL string) []ClientOption {
2323
}
2424
}
2525

26+
// TestConfig creates client options for test configuration with the given URLs.
2627
// Deprecated: TestConfig is deprecated. Use TestOptions instead.
2728
func TestConfig(_ context.Context, metadataURL, apiURL string) []ClientOption {
2829
return TestOptions(metadataURL, apiURL)

0 commit comments

Comments
 (0)