And yet another if.
This commit is contained in:
parent
9ccf15fcf9
commit
b77bc54f5d
@ -278,7 +278,8 @@ func (self *rawContainerHandler) processEvent(event *inotify.Event, events chan
|
|||||||
delete(self.watches, containerName)
|
delete(self.watches, containerName)
|
||||||
|
|
||||||
// Container was deleted, stop watching for it.
|
// Container was deleted, stop watching for it.
|
||||||
if err := self.watcher.RemoveWatch(event.Name); err != nil {
|
err := self.watcher.RemoveWatch(event.Name)
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user