mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-20 02:01:47 +01:00
formatting fix
This commit is contained in:
parent
cdbe08ae7e
commit
dd46d5ecdd
@ -24,7 +24,7 @@ export function sequentialize(cacheKey: (args: any[]) => string) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
value: function (...args: any[]) {
|
value: function(...args: any[]) {
|
||||||
const cache = getCache(this);
|
const cache = getCache(this);
|
||||||
const argsCacheKey = cacheKey(args);
|
const argsCacheKey = cacheKey(args);
|
||||||
let response = cache.get(argsCacheKey);
|
let response = cache.get(argsCacheKey);
|
||||||
|
@ -21,7 +21,7 @@ export function throttle(limit: number, throttleKey: (args: any[]) => string) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
value: function (...args: any[]) {
|
value: function(...args: any[]) {
|
||||||
const throttles = getThrottles(this);
|
const throttles = getThrottles(this);
|
||||||
const argsThrottleKey = throttleKey(args);
|
const argsThrottleKey = throttleKey(args);
|
||||||
let queue = throttles.get(argsThrottleKey);
|
let queue = throttles.get(argsThrottleKey);
|
||||||
|
Loading…
Reference in New Issue
Block a user