We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func (v *Viper) WatchConfig() { // ... else if filepath.Clean(event.Name) == configFile && event.Op&fsnotify.Remove&fsnotify.Remove != 0 { eventsWG.Done() return } // ... }
This code segment makes me confused that the event.Op does AND-OPERATION with fsnotify.Remove twice . Is there some special purpose?
event.Op
fsnotify.Remove
The text was updated successfully, but these errors were encountered:
This was fixed, as my previous comment @sagikazarmark
Sorry, something went wrong.
Thanks @arp242
Successfully merging a pull request may close this issue.
This code segment makes me confused that the
event.Op
does AND-OPERATION withfsnotify.Remove
twice . Is there some special purpose?The text was updated successfully, but these errors were encountered: