From 868e18614a037e34bd1282d3d64802a37baf3ef7 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Thu, 8 Dec 2016 15:40:59 -0800 Subject: [PATCH] Fix couple of lint issues Signed-off-by: Mrunal Patel --- server/container_execsync.go | 2 +- server/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/container_execsync.go b/server/container_execsync.go index caab7983..3acf0abb 100644 --- a/server/container_execsync.go +++ b/server/container_execsync.go @@ -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 } diff --git a/server/server.go b/server/server.go index 317b9499..cc65a264 100644 --- a/server/server.go +++ b/server/server.go @@ -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 }