From c34c2f24d93b75abf368ee4263da6d2d65a26448 Mon Sep 17 00:00:00 2001 From: Jian Wang Date: Tue, 21 Jan 2025 17:02:13 -0500 Subject: [PATCH] Fixed the unused augument issue and remove the eslint exclusion line Signed-off-by: Jian Wang --- packages/legacy/core/App/contexts/network.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/legacy/core/App/contexts/network.tsx b/packages/legacy/core/App/contexts/network.tsx index a34a87c0e..12fd36a60 100644 --- a/packages/legacy/core/App/contexts/network.tsx +++ b/packages/legacy/core/App/contexts/network.tsx @@ -11,7 +11,7 @@ export interface NetworkContext { assertNetworkConnected: () => boolean displayNetInfoModal: () => void hideNetInfoModal: () => void - assertInternetReachable: (_urls?: string[]) => Promise + assertInternetReachable: () => Promise assertMediatorReachable: () => Promise } @@ -41,8 +41,7 @@ export const NetworkProvider: React.FC = ({ children }) return isConnected } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const assertInternetReachable = async (_urls?: string[]): Promise => { + const assertInternetReachable = async (): Promise => { return netInfo.isInternetReachable as boolean }