mirror of
https://github.com/spf13/viper
synced 2025-04-29 00:37:17 +00:00
unnecessary operand
This commit is contained in:
parent
f646c50b18
commit
6c1745665b
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue