Rename unused testing parameter to _
The parameter is an additional marker that the test helper must only be used for tests.
This commit is contained in:
parent
1514593f22
commit
d1a5ec7839
6 changed files with 8 additions and 7 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
// TestLogToStderr configures debug to log to stderr if not the debug log is
|
||||
// not already configured and returns whether logging was enabled.
|
||||
func TestLogToStderr(t testing.TB) bool {
|
||||
func TestLogToStderr(_ testing.TB) bool {
|
||||
if opts.isEnabled {
|
||||
return false
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ func TestLogToStderr(t testing.TB) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func TestDisableLog(t testing.TB) {
|
||||
func TestDisableLog(_ testing.TB) {
|
||||
opts.logger = nil
|
||||
opts.isEnabled = false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue