mirror of
https://github.com/spf13/viper
synced 2024-12-23 03:57:01 +00:00
Remove double and
This commit is contained in:
parent
cdb5e5976f
commit
24f5069098
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue