From b7b3a3e9d78456dfc4cdd6263c4351aa00160c50 Mon Sep 17 00:00:00 2001 From: Anush008 Date: Thu, 27 Apr 2023 23:01:47 +0530 Subject: [PATCH] fix: The last of linting errors --- src/worker/background.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/worker/background.ts b/src/worker/background.ts index 3fc3e07e..2977019d 100644 --- a/src/worker/background.ts +++ b/src/worker/background.ts @@ -3,21 +3,21 @@ import { checkTokenValidity } from "../utils/fetchOpenSaucedApiData"; import setAccessTokenInChromeStorage from "../utils/setAccessToken"; chrome.webRequest.onCompleted.addListener( - details => { - chrome.storage.sync.remove(OPEN_SAUCED_AUTH_TOKEN_KEY); + () => { + void chrome.storage.sync.remove(OPEN_SAUCED_AUTH_TOKEN_KEY); }, { urls: [SUPABASE_LOGOUT_URL] }, ); chrome.tabs.onUpdated.addListener((tabId, changeInfo) => { if (changeInfo.url?.includes("github.com")) { - chrome.tabs.sendMessage(tabId, { message: "GITHUB_URL_CHANGED" }); + void chrome.tabs.sendMessage(tabId, { message: "GITHUB_URL_CHANGED" }); } }); chrome.cookies.onChanged.addListener(async changeInfo => { try { - if (changeInfo.cookie.name != SUPABASE_COOKIE_NAME || changeInfo.cookie.domain != SUPABASE_AUTH_DOMAIN) { + if (changeInfo.cookie.name !== SUPABASE_COOKIE_NAME || changeInfo.cookie.domain !== SUPABASE_AUTH_DOMAIN) { return; } if (changeInfo.removed) { @@ -28,7 +28,7 @@ chrome.cookies.onChanged.addListener(async changeInfo => { if (!isValidToken) { return chrome.storage.sync.remove(OPEN_SAUCED_AUTH_TOKEN_KEY); } - setAccessTokenInChromeStorage(changeInfo.cookie.value); + void setAccessTokenInChromeStorage(changeInfo.cookie.value); } catch (error) { console.error("Error processing cookie update:", error); }