unnecessary operand

This commit is contained in:
Stephen Wodecki 2021-09-13 20:22:43 -05:00 committed by Márk Sági-Kazár
parent f646c50b18
commit 6c1745665b

View file

@ -433,7 +433,7 @@ func (v *Viper) WatchConfig() {
v.onConfigChange(event) v.onConfigChange(event)
} }
} else if filepath.Clean(event.Name) == configFile && } else if filepath.Clean(event.Name) == configFile &&
event.Op&fsnotify.Remove&fsnotify.Remove != 0 { event.Op&fsnotify.Remove != 0 {
eventsWG.Done() eventsWG.Done()
return return
} }