js: Drop a StorageAwareMap entirely from storage if all keys expired
This commit is contained in:
parent
cfa3af51db
commit
8893db0cbc
|
@ -234,7 +234,12 @@
|
|||
}, this);
|
||||
}
|
||||
|
||||
storage.set(key, items);
|
||||
if (!! items && items.length) {
|
||||
storage.set(key, items);
|
||||
} else if(items !== null) {
|
||||
storage.remove(key);
|
||||
}
|
||||
|
||||
return (new Icinga.Storage.StorageAwareMap(items).setStorage(storage, key));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue