From 1b60afc38a5e2ed544dc3661c63b108ec29d770c Mon Sep 17 00:00:00 2001 From: Lorenz Brun Date: Tue, 5 May 2020 18:54:01 +0200 Subject: Remove unreachable code (#59) --- pkg/v1/proc/deleted_state.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/v1/proc/deleted_state.go b/pkg/v1/proc/deleted_state.go index 95b4406cd..b0233841d 100644 --- a/pkg/v1/proc/deleted_state.go +++ b/pkg/v1/proc/deleted_state.go @@ -38,12 +38,10 @@ func (s *deletedState) Start(ctx context.Context) error { } func (s *deletedState) Delete(ctx context.Context) error { - return errors.Errorf("cannot delete a deleted process") return errors.Wrap(errdefs.ErrNotFound, "cannot delete a deleted process") } func (s *deletedState) Kill(ctx context.Context, sig uint32, all bool) error { - return errors.Errorf("cannot kill a deleted process") return errors.Wrap(errdefs.ErrNotFound, "cannot kill a deleted process") } -- cgit v1.2.3