[#121] container: Do not fail on deleting non-existent container

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-09-20 16:53:23 +03:00 committed by Alex Vanin
parent b2f6fb641a
commit cb385c920f

View file

@ -213,7 +213,7 @@ func Delete(containerID []byte, signature interop.Signature, token []byte) {
ownerID := getOwnerByID(ctx, containerID)
if len(ownerID) == 0 {
panic("delete: container does not exist")
return
}
var ( // for invocation collection without notary