Skip to content

Commit

Permalink
Fixed the unused augument issue and remove the eslint exclusion line
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Wang <[email protected]>
  • Loading branch information
jian4on committed Jan 21, 2025
1 parent 6a12522 commit c34c2f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/legacy/core/App/contexts/network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface NetworkContext {
assertNetworkConnected: () => boolean
displayNetInfoModal: () => void
hideNetInfoModal: () => void
assertInternetReachable: (_urls?: string[]) => Promise<boolean>
assertInternetReachable: () => Promise<boolean>
assertMediatorReachable: () => Promise<boolean>
}

Expand Down Expand Up @@ -41,8 +41,7 @@ export const NetworkProvider: React.FC<React.PropsWithChildren> = ({ children })
return isConnected
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const assertInternetReachable = async (_urls?: string[]): Promise<boolean> => {
const assertInternetReachable = async (): Promise<boolean> => {
return netInfo.isInternetReachable as boolean
}

Expand Down

0 comments on commit c34c2f2

Please sign in to comment.