1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-04 05:08:06 +02:00

formatting

This commit is contained in:
Kyle Spearrin 2019-02-02 10:06:44 -05:00
parent e7f4dccfc3
commit ff0e166755

View File

@ -32,13 +32,12 @@ export function sequentialize(cacheKey: (args: any[]) => string) {
return response;
}
response = originalMethod.apply(this, args)
.finally(() => {
cache.delete(argsCacheKey);
if (cache.size === 0) {
caches.delete(this);
}
});
response = originalMethod.apply(this, args).finally(() => {
cache.delete(argsCacheKey);
if (cache.size === 0) {
caches.delete(this);
}
});
cache.set(argsCacheKey, response);
return response;