Code simplification that @tiborvass requested

Signed-off-by: Jimmy Puckett <jimmy.puckett@spinen.com>
Upstream-commit: e8e60befd6c3b4feac975a84cd907659788fabc1
Component: engine
This commit is contained in:
Jimmy Puckett
2015-03-24 21:10:07 -04:00
parent 4ab99c503e
commit b369dc093b
+1 -2
View File
@@ -445,8 +445,7 @@ func (daemon *Daemon) setupResolvconfWatcher() error {
select {
case event := <-watcher.Events:
if event.Name == "/etc/resolv.conf" &&
(event.Op&fsnotify.Write != 0 ||
event.Op&fsnotify.Create != 0) {
(event.Op & (fsnotify.Write | fsnotify.Create) != 0) {
// verify a real change happened before we go further--a file write may have happened
// without an actual change to the file
updatedResolvConf, newResolvConfHash, err := resolvconf.GetIfChanged()