Merge pull request #250 from mrunalp/lint_fixes

Fix couple of lint issues
This commit is contained in:
Pengfei Ni 2016-12-09 08:44:13 +08:00 committed by GitHub
commit 4559e7d05f
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ func (s *Server) ExecSync(ctx context.Context, req *pb.ExecSyncRequest) (*pb.Exe
return nil, err
}
if err := s.runtime.UpdateStatus(c); err != nil {
if err = s.runtime.UpdateStatus(c); err != nil {
return nil, err
}

View file

@ -141,7 +141,7 @@ func (s *Server) loadSandbox(id string) error {
sandboxPath := filepath.Join(s.config.SandboxDir, id)
if err := label.ReserveLabel(processLabel); err != nil {
if err = label.ReserveLabel(processLabel); err != nil {
return err
}