mirror of
https://github.com/spf13/viper
synced 2025-05-11 22:57:21 +00:00
Fix: double binary AND
This commit is contained in:
parent
8ec82f8998
commit
94d9aa4430
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -431,7 +431,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