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 }