Remove double and

This commit is contained in:
Frediano Ziglio 2021-05-02 20:03:56 +01:00
parent cdb5e5976f
commit 24f5069098

View file

@ -388,7 +388,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
}