Skip to content

Commit

Permalink
fixed warnings for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
icehaunter committed Dec 10, 2024
1 parent 696e8dd commit 2037707
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function sendRequest(
let response: Response | undefined
try {
response = await api.request(path, method, data)
} catch (err) {
} catch (_err) {
// ignore
}

Expand Down
2 changes: 1 addition & 1 deletion examples/write-patterns/shared/app/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function resilientFetch(
// Could also check the status and retry before returning if you want to be
// resilient to 4xx and 5xx responses as well as network errors
return await fetch(url, options)
} catch (err) {
} catch (_err) {
return await retryFetch(url, options, retryCount + 1)
}
}
Expand Down
6 changes: 5 additions & 1 deletion examples/yjs/app/electric-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export default function ElectricEditor() {
const toggleStatus =
connectivityStatus === `connected` ? `disconnected` : `connected`
setConnectivityStatus(toggleStatus)
toggleStatus === `connected` ? network.connect() : network.disconnect()
if (toggleStatus === `connected`) {
network.connect()
} else {
network.disconnect()
}
}

useEffect(() => {
Expand Down

0 comments on commit 2037707

Please sign in to comment.