Remove unreachable code (#59)

This commit is contained in:
Lorenz Brun
2020-05-05 09:54:01 -07:00
committed by GitHub
parent a9b3046791
commit 1b60afc38a
-2
View File
@@ -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")
}