deleteStickerPackReference: Return early on empty array as well
This commit is contained in:
parent
2e01c9fb87
commit
a14936451e
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ async function deletePackReference(messageId, packId) {
|
|||
const paths = await deleteStickerPackReference(messageId, packId);
|
||||
|
||||
// If we don't get a list of paths back, then the sticker pack was not deleted
|
||||
if (!paths) {
|
||||
if (!paths || !paths.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue