Skip to content

Commit

Permalink
chore(lint): fix linter errors (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r committed Oct 6, 2023
1 parent 393ca32 commit d4124d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions vela/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type (
}

service struct {
//nolint:structcheck // false positive
client *Client
}

Expand Down
4 changes: 1 addition & 3 deletions vela/queue.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2022 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package vela

Expand Down
4 changes: 1 addition & 3 deletions vela/queue_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2022 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package vela

Expand Down
4 changes: 2 additions & 2 deletions vela/schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func TestSchedule_GetAll(t *testing.T) {
t.Errorf("GetAll for %s is %v, want %v", test.name, gotResp.StatusCode, test.wantResp)
}

if !reflect.DeepEqual(got, &test.want) {
t.Errorf("GetAll for %s is %v, want %v", test.name, *got, test.want)
if !reflect.DeepEqual(*got, test.want) {
t.Errorf("GetAll for %s is %v, want %v", test.name, got, test.want)
}
})
}
Expand Down

0 comments on commit d4124d4

Please sign in to comment.