Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenicole730 committed Nov 13, 2024
1 parent 7e15fec commit 1b27971
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/viam_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ func CreateViamClientWithOptions(ctx context.Context, options Options, logger lo
}

// CreateViamClientWithAPIKey creates a ViamClient with an API key.
func CreateViamClientWithAPIKey(ctx context.Context, options Options, apiKey string, apiKeyID string, logger logging.Logger) (*ViamClient, error) {
func CreateViamClientWithAPIKey(
ctx context.Context, options Options, apiKey, apiKeyID string, logger logging.Logger,
) (*ViamClient, error) {
if !validateAPIKeyFormat(apiKey) {
return nil, errors.New("API key should be a 32-char all-lowercase alphanumeric string")
}
Expand Down
8 changes: 4 additions & 4 deletions app/viam_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ var (

type MockConn struct{}

func (m *MockConn) Invoke(ctx context.Context, method string, args, reply any, opts ...grpc.CallOption) error {
return nil
}

func (m *MockConn) NewStream(
ctx context.Context,
desc *grpc.StreamDesc,
Expand All @@ -33,6 +29,10 @@ func (m *MockConn) NewStream(
) (grpc.ClientStream, error) {
return nil, nil
}

func (m *MockConn) Invoke(ctx context.Context, method string, args, reply any, opts ...grpc.CallOption) error {
return nil
}
func (m *MockConn) PeerConn() *webrtc.PeerConnection { return nil }
func (m *MockConn) Close() error { return nil }
func mockDialDirectGRPC(
Expand Down

0 comments on commit 1b27971

Please sign in to comment.