aboutsummaryrefslogtreecommitdiff
path: root/src/util/asyncMemo.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-06 23:32:01 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-06 23:32:01 +0530
commit47787c0b0b846d5f4a057661efdd05d8786032f1 (patch)
tree3a3d58a5ebad8af584de6a6cd882c2019f71dffa /src/util/asyncMemo.ts
parentf36bb7a04eabe0330cb166bf9ce5021c92f38dc8 (diff)
downloadwallet-core-47787c0b0b846d5f4a057661efdd05d8786032f1.tar.xz
make linter less grumpy
Diffstat (limited to 'src/util/asyncMemo.ts')
-rw-r--r--src/util/asyncMemo.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/asyncMemo.ts b/src/util/asyncMemo.ts
index 84fe6b802..6e88081b6 100644
--- a/src/util/asyncMemo.ts
+++ b/src/util/asyncMemo.ts
@@ -24,7 +24,7 @@ export class AsyncOpMemoMap<T> {
private n = 0;
private memoMap: { [k: string]: MemoEntry<T> } = {};
- private cleanUp(key: string, n: number) {
+ private cleanUp(key: string, n: number): void {
const r = this.memoMap[key];
if (r && r.n === n) {
delete this.memoMap[key];
@@ -48,7 +48,7 @@ export class AsyncOpMemoMap<T> {
this.cleanUp(key, n);
});
}
- clear() {
+ clear(): void {
this.memoMap = {};
}
}
@@ -57,7 +57,7 @@ export class AsyncOpMemoSingle<T> {
private n = 0;
private memoEntry: MemoEntry<T> | undefined;
- private cleanUp(n: number) {
+ private cleanUp(n: number): void {
if (this.memoEntry && this.memoEntry.n === n) {
this.memoEntry = undefined;
}
@@ -81,7 +81,7 @@ export class AsyncOpMemoSingle<T> {
};
return p;
}
- clear() {
+ clear(): void {
this.memoEntry = undefined;
}
}