Skip to content

Commit

Permalink
adjust to new eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jnowakow committed Dec 17, 2024
1 parent ee98fe0 commit 5393b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/Pusher/pusher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Onyx.connect({
});

let socket: PusherWithAuthParams | null;
let pusherSocketID = '';
let pusherSocketID: string | undefined;
const socketEventCallbacks: SocketEventCallback[] = [];
let customAuthorizer: ChannelAuthorizerGenerator;

Expand Down Expand Up @@ -132,7 +132,7 @@ function init(args: Args, params?: unknown): Promise<void> {
});

socket?.connection.bind('connected', () => {
pusherSocketID = socket?.connection.socket_id ?? '';
pusherSocketID = socket?.connection.socket_id;
callSocketEventCallbacks('connected');
resolve();
});
Expand Down Expand Up @@ -414,7 +414,7 @@ function reconnect() {
socket.connect();
}

function getPusherSocketID(): string {
function getPusherSocketID(): string | undefined {
return pusherSocketID;
}

Expand Down

0 comments on commit 5393b37

Please sign in to comment.