mirror of
https://github.com/spf13/viper
synced 2025-05-11 22:57:21 +00:00
unnecessary operand
This commit is contained in:
parent
eb876e1a15
commit
9d8e66b8d4
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -428,7 +428,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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue