Skip to content

Commit dcb224c

Browse files
committed
chore: fix lint issue
1 parent fd1a67c commit dcb224c

File tree

1 file changed

+6
-2
lines changed
  • packages/loro-websocket/src/client

1 file changed

+6
-2
lines changed

packages/loro-websocket/src/client/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,12 @@ export class LoroWebsocketClient {
225225
const maybeProcess = globalScope.process;
226226
if (maybeProcess && typeof maybeProcess.on === "function") {
227227
// Node environments may surface online/offline via the global process emitter.
228-
const online = () => this.handleOnline();
229-
const offline = () => this.handleOffline();
228+
const online = () => {
229+
this.handleOnline();
230+
};
231+
const offline = () => {
232+
this.handleOffline();
233+
};
230234
maybeProcess.on("online", online);
231235
maybeProcess.on("offline", offline);
232236
this.removeNetworkListeners = () => {

0 commit comments

Comments
 (0)