From 030b77a720993649c8297da5deae1367129d8727 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Thu, 15 Feb 2024 12:07:55 +0100 Subject: [PATCH] fix: lint violations Signed-off-by: Mark Sagi-Kazar --- viper_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/viper_test.go b/viper_test.go index 0b1f407..0853369 100644 --- a/viper_test.go +++ b/viper_test.go @@ -2427,7 +2427,7 @@ func TestWatchFile(t *testing.T) { wg := sync.WaitGroup{} wg.Add(1) var wgDoneOnce sync.Once // OnConfigChange is called twice on Windows - v.OnConfigChange(func(in fsnotify.Event) { + v.OnConfigChange(func(_ fsnotify.Event) { t.Logf("config file changed") wgDoneOnce.Do(func() { wg.Done() @@ -2450,7 +2450,7 @@ func TestWatchFile(t *testing.T) { v, watchDir, _ := newViperWithSymlinkedConfigFile(t) wg := sync.WaitGroup{} v.WatchConfig() - v.OnConfigChange(func(in fsnotify.Event) { + v.OnConfigChange(func(_ fsnotify.Event) { t.Logf("config file changed") wg.Done() }) @@ -2689,8 +2689,6 @@ func BenchmarkGetBoolFromMap(b *testing.B) { } // Skip some tests on Windows that kept failing when Windows was added to the CI as a target. -// -//nolint:gocritic // sloppyTestFuncName func skipWindows(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("Skip test on Windows")