From 6c1745665bf87dea6b995791e9952e7bad9337a2 Mon Sep 17 00:00:00 2001 From: Stephen Wodecki Date: Mon, 13 Sep 2021 20:22:43 -0500 Subject: [PATCH] unnecessary operand --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper.go b/viper.go index 4a99358..980ab5e 100644 --- a/viper.go +++ b/viper.go @@ -433,7 +433,7 @@ func (v *Viper) WatchConfig() { v.onConfigChange(event) } } else if filepath.Clean(event.Name) == configFile && - event.Op&fsnotify.Remove&fsnotify.Remove != 0 { + event.Op&fsnotify.Remove != 0 { eventsWG.Done() return }