all: Unused parameter should be replaced by underscore (#8464)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot]
2022-07-28 17:17:29 +02:00
committed by GitHub
co-authored by deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent 7bdb5faa9c
commit 5130c414da
32 changed files with 90 additions and 90 deletions
+4 -4
View File
@@ -551,11 +551,11 @@ type noopLogger struct{}
var NoopLogger Logger = &noopLogger{}
func (*noopLogger) Serve(ctx context.Context) error { return nil }
func (*noopLogger) Serve(_ context.Context) error { return nil }
func (*noopLogger) Log(t EventType, data interface{}) {}
func (*noopLogger) Log(_ EventType, _ interface{}) {}
func (*noopLogger) Subscribe(mask EventType) Subscription {
func (*noopLogger) Subscribe(_ EventType) Subscription {
return &noopSubscription{}
}
@@ -565,7 +565,7 @@ func (*noopSubscription) C() <-chan Event {
return nil
}
func (*noopSubscription) Poll(timeout time.Duration) (Event, error) {
func (*noopSubscription) Poll(_ time.Duration) (Event, error) {
return Event{}, errNoop
}