summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLorenz Brun <lorenz@dolansoft.org>2020-05-05 18:54:01 +0200
committerGitHub <noreply@github.com>2020-05-05 09:54:01 -0700
commit1b60afc38a5e2ed544dc3661c63b108ec29d770c (patch)
tree0a2529915ae39acdfadb4d56c93da95bc44cc029
parenta9b3046791e7044fb519ce611c74961d29f9fd23 (diff)
Remove unreachable code (#59)
-rw-r--r--pkg/v1/proc/deleted_state.go2
1 files changed, 0 insertions, 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")
}