Skip to content

Commit

Permalink
Remove commentted code block to make src clean
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Wang <[email protected]>
  • Loading branch information
jian4on committed Jan 15, 2025
1 parent f504996 commit f55250e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/legacy/core/App/contexts/network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,7 @@ export const NetworkProvider: React.FC<React.PropsWithChildren> = ({ children })

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

return netInfo.isInternetReachable as boolean
/*
// Ping internet check beacon endponits, set internetReachable to be true positive response from anyone
try {
let isReached = false;
await Promise.all(urls.map(async (url) => {
const response = await fetch(url)
if ("204" === `${response.status}` || "200" === `${response.status}`) {
isReached = true
}
}));
return isReached
} catch (error) {
return false
}
*/
}

const assertMediatorReachable = async (): Promise<boolean> => {
Expand Down

0 comments on commit f55250e

Please sign in to comment.