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

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
enable-notary-in-public-chains
Alex Vanin 2021-09-20 16:53:23 +03:00 committed by Alex Vanin
parent b2f6fb641a
commit cb385c920f
1 changed files with 1 additions and 1 deletions

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