ci: disable the unparam linter for tests (#4738)

This commit is contained in:
Marten Seemann
2024-12-01 12:27:32 +08:00
committed by GitHub
parent 2e4cef10ab
commit aed4d8df0c
5 changed files with 1 additions and 4 deletions

View File

@@ -11,7 +11,6 @@ import (
"github.com/stretchr/testify/require"
)
//nolint:unparam
func scaleDuration(t time.Duration) time.Duration {
scaleFactor := 1
if f, err := strconv.Atoi(os.Getenv("TIMESCALE_FACTOR")); err == nil { // parsing "" errors, so this works fine if the env is not set