deleteStickerPackReference: Return early on empty array as well

This commit is contained in:
Scott Nonnenberg 2020-07-01 11:54:54 -07:00
parent 2e01c9fb87
commit a14936451e

View file

@ -693,7 +693,7 @@ async function deletePackReference(messageId, packId) {
const paths = await deleteStickerPackReference(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 we don't get a list of paths back, then the sticker pack was not deleted
if (!paths) { if (!paths || !paths.length) {
return; return;
} }