forked from TrueCloudLab/frostfs-contract
[#121] container: Do not fail on deleting non-existent container
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
b2f6fb641a
commit
cb385c920f
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ func Delete(containerID []byte, signature interop.Signature, token []byte) {
|
||||||
|
|
||||||
ownerID := getOwnerByID(ctx, containerID)
|
ownerID := getOwnerByID(ctx, containerID)
|
||||||
if len(ownerID) == 0 {
|
if len(ownerID) == 0 {
|
||||||
panic("delete: container does not exist")
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var ( // for invocation collection without notary
|
var ( // for invocation collection without notary
|
||||||
|
|
Loading…
Reference in a new issue