Skip to content

Commit d40d632

Browse files
committed
chore: add errnocheck s for linting
Signed-off-by: emreya <e.yazici1990@gmail.com>
1 parent a0db739 commit d40d632

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/client/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type syncPool[T any] struct {
4141
}
4242

4343
func (s *syncPool[T]) Get() T {
44-
return s.Pool.Get().(T)
44+
return s.Pool.Get().(T) //nolint:errcheck
4545
}
4646

4747
func (s *syncPool[T]) Put(t T) {

controllers/client/grafana_client_bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type fakeClient struct {
1414
}
1515

1616
func (c fakeClient) Get(_ context.Context, _ client.ObjectKey, ref client.Object, _ ...client.GetOption) error {
17-
s := ref.(*v1.Secret)
17+
s := ref.(*v1.Secret) //nolint:errcheck
1818
s.Data = map[string][]byte{
1919
"fake": []byte("something"),
2020
}

0 commit comments

Comments
 (0)