Skip to content

Commit

Permalink
refactor(sio): simplify middleware execution (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Sep 18, 2024
1 parent 32c761f commit 043b55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/socket.io/lib/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class Namespace<
socket: Socket<ListenEvents, EmitEvents, ServerSideEvents, SocketData>,
fn: (err?: ExtendedError) => void,
) {
if (!this._fns) return fn();
if (!this._fns.length) return fn();

const fns = this._fns.slice(0);

Expand Down

0 comments on commit 043b55c

Please sign in to comment.