mirror of https://github.com/spf13/viper.git
unnecessary operand
This commit is contained in:
parent
f646c50b18
commit
6c1745665b
2
viper.go
2
viper.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue