Fix linter issues

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2020-10-07 15:42:01 -07:00
parent 8b046647e6
commit c59d1cd5b0
2 changed files with 5 additions and 11 deletions

View File

@@ -31,8 +31,6 @@ import (
var (
// check to make sure the *service implements the GRPC API
_ = (taskAPI.TaskService)(&service{})
// common response type
empty = &ptypes.Empty{}
)
// New returns a new shim service
@@ -121,7 +119,7 @@ func (s *service) Connect(ctx context.Context, r *taskAPI.ConnectRequest) (*task
// Shutdown is called after the underlying resources of the shim are cleaned up and the service can be stopped
func (s *service) Shutdown(ctx context.Context, r *taskAPI.ShutdownRequest) (*ptypes.Empty, error) {
os.Exit(0)
return empty, nil
return &ptypes.Empty{}, nil
}
// Stats returns container level system stats for a container and its processes