go: remove unused parameters

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-03-20 11:03:36 +01:00
parent 822d7823f8
commit 0036b24266
106 changed files with 320 additions and 323 deletions

View file

@ -170,7 +170,7 @@ type stubPoller[T any] struct {
resultErr error
}
func (s *stubPoller[T]) Poll(ctx context.Context) error {
func (s *stubPoller[T]) Poll(_ context.Context) error {
return s.pollErr
}
@ -178,7 +178,7 @@ func (s *stubPoller[T]) Done() bool {
return s.done
}
func (s *stubPoller[T]) Result(ctx context.Context, out *T) error {
func (s *stubPoller[T]) Result(_ context.Context, out *T) error {
*out = *s.result
return s.resultErr
}
@ -197,7 +197,7 @@ type fakePoller[T any] struct {
pollC chan error
}
func (s *fakePoller[T]) Poll(ctx context.Context) error {
func (s *fakePoller[T]) Poll(_ context.Context) error {
return <-s.pollC
}
@ -205,7 +205,7 @@ func (s *fakePoller[T]) Done() bool {
return <-s.doneC
}
func (s *fakePoller[T]) Result(ctx context.Context, out *T) error {
func (s *fakePoller[T]) Result(_ context.Context, out *T) error {
*out = *s.result
return s.resultErr
}