mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-27 15:10:44 -05:00
go: remove unused parameters
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
822d7823f8
commit
0036b24266
106 changed files with 320 additions and 323 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue