From c16e69a9d5ec3422b648a6d32842442925285a29 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Tue, 13 Jul 2021 11:33:49 -0700 Subject: Use consistent naming for subcontainers It was confusing to find functions relating to root and non-root containers. Replace "non-root" and "subcontainer" and make naming consistent in Sandbox and controller. PiperOrigin-RevId: 384512518 --- pkg/shim/proc/exec_state.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pkg/shim/proc/exec_state.go') diff --git a/pkg/shim/proc/exec_state.go b/pkg/shim/proc/exec_state.go index 8d8ecf541..03ecb401a 100644 --- a/pkg/shim/proc/exec_state.go +++ b/pkg/shim/proc/exec_state.go @@ -64,9 +64,7 @@ func (s *execCreatedState) Start(ctx context.Context) error { } func (s *execCreatedState) Delete(context.Context) error { - if err := s.p.delete(); err != nil { - return err - } + s.p.delete() s.transition(deleted) return nil } @@ -144,9 +142,7 @@ func (s *execStoppedState) Start(context.Context) error { } func (s *execStoppedState) Delete(context.Context) error { - if err := s.p.delete(); err != nil { - return err - } + s.p.delete() s.transition(deleted) return nil } -- cgit v1.2.3