mirror of https://github.com/spf13/viper.git
Remove double and
This commit is contained in:
parent
cdb5e5976f
commit
24f5069098
2
viper.go
2
viper.go
|
@ -388,7 +388,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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue