From 0f3dceb01307d8a57b6d0e880c4250c4d132b831 Mon Sep 17 00:00:00 2001 From: Nigel Breslaw Date: Thu, 15 Feb 2024 11:04:20 +0200 Subject: [PATCH] Tidy --- native_gg/src/authentication/AuthService.ts | 3 +-- native_gg/src/constants/storage.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/native_gg/src/authentication/AuthService.ts b/native_gg/src/authentication/AuthService.ts index fc4d2cd7f..c372892b4 100644 --- a/native_gg/src/authentication/AuthService.ts +++ b/native_gg/src/authentication/AuthService.ts @@ -35,14 +35,13 @@ class AuthService { const p1 = performance.now(); this.init() - // .then((result) => {}) .catch((e) => { console.info("No valid user and auth found"); }) .finally(() => { this.setInitComplete(); const p2 = performance.now(); - console.log("took:", (p2 - p1).toFixed(4), "ms"); + console.log("init() took:", (p2 - p1).toFixed(4), "ms"); }); } diff --git a/native_gg/src/constants/storage.ts b/native_gg/src/constants/storage.ts index 9648d69d9..d5b60943c 100644 --- a/native_gg/src/constants/storage.ts +++ b/native_gg/src/constants/storage.ts @@ -1,4 +1,3 @@ -// I want to export a name space 'storage' that has several constants such as 'current_ID' and 'auth_token' that are used in the native_gg/src/authentication/AuthService.ts file. I will use the 'export' keyword to export the name space 'storage' and then use the 'export' keyword to export the constants 'current_ID' and 'auth_token' from the name space 'storage'. export const Store = { _refresh_token: "_refresh_token", _bungie_user: "_bungie_user",