Fix lint issues

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-03-27 10:14:11 -07:00
parent 37f118d73a
commit d69ad9b5a3
9 changed files with 24 additions and 27 deletions

View file

@ -113,10 +113,7 @@ func (s *Server) loadContainer(id string) error {
return fmt.Errorf("error updating status for container %s: %v", ctr.ID(), err)
}
s.addContainer(ctr)
if err = s.ctrIDIndex.Add(id); err != nil {
return err
}
return nil
return s.ctrIDIndex.Add(id)
}
func configNetNsPath(spec rspec.Spec) (string, error) {