mirror of
https://github.com/bitwarden/browser
synced 2025-01-29 12:40:06 +01:00
formatting
This commit is contained in:
parent
e7f4dccfc3
commit
ff0e166755
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user