diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-12 05:42:30 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-12 05:42:30 +0800 |
commit | e1879ef4d91fc58203d9748eca38695b79c43674 (patch) | |
tree | 0a9a68927d5dc769b0c5cb2c5d9445849fb56e7c /packages/website/ts/utils | |
parent | b6df727efb74084a849330273a44cfc5ae3a85af (diff) | |
download | dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.gz dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.bz2 dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.lz dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.xz dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.zst dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.zip |
Fix no-unused-variable tslint rule to include parameters and fix issues
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r-- | packages/website/ts/utils/error_reporter.ts | 2 | ||||
-rw-r--r-- | packages/website/ts/utils/utils.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/utils/error_reporter.ts b/packages/website/ts/utils/error_reporter.ts index 548d4d41d..f875141fe 100644 --- a/packages/website/ts/utils/error_reporter.ts +++ b/packages/website/ts/utils/error_reporter.ts @@ -37,7 +37,7 @@ export const errorReporter = { return; // Let's not log development errors to rollbar } - return new Promise((resolve, reject) => { + return new Promise((resolve, _reject) => { rollbar.error(err, (rollbarErr: Error) => { if (rollbarErr) { logUtils.log(`Error reporting to rollbar, ignoring: ${rollbarErr}`); diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index 6961784c6..651a4212a 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -152,7 +152,7 @@ export const utils = { const intervalId = setTimeout(() => { resolve(false); }, getApiVersionTimeoutMs); - u2f.getApiVersion((version: number) => { + u2f.getApiVersion((_version: number) => { clearTimeout(intervalId); resolve(true); }); @@ -279,7 +279,7 @@ export const utils = { if (document.readyState === 'complete') { return; // Already loaded } - return new Promise<void>((resolve, reject) => { + return new Promise<void>((resolve, _reject) => { window.onload = () => resolve(); }); }, |