diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-07-22 17:22:41 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-07-23 13:39:21 +0200 |
| commit | f5f870074496283521d6adcc80537a54e2168c8e (patch) | |
| tree | bc8bcac2c7386aa2522c89223aba4471cfb27820 /gui/src/shared | |
| parent | 9c335bda35880747bf44d4b01fdca3248ea1dfb2 (diff) | |
| download | mullvadvpn-f5f870074496283521d6adcc80537a54e2168c8e.tar.xz mullvadvpn-f5f870074496283521d6adcc80537a54e2168c8e.zip | |
Replace consumePromise with void operator
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/promise.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gui/src/shared/promise.ts b/gui/src/shared/promise.ts deleted file mode 100644 index c0228e23e8..0000000000 --- a/gui/src/shared/promise.ts +++ /dev/null @@ -1,6 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/no-empty-function -const noop = () => {}; - -export default function consumePromise<T>(promise: Promise<T>): void { - promise.then(noop, noop); -} |
