fix(backups/extractIdsFromSimplePattern): returns [] for undefined pattern

This commit is contained in:
Julien Fontanet 2020-02-11 09:22:09 +01:00
parent 57fa00b765
commit 750308a16a

View File

@ -1,4 +1,8 @@
function extractIdsFromSimplePattern(pattern) {
if (pattern === undefined) {
return []
}
if (pattern === null || typeof pattern !== 'object') {
return
}