We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent add27e4 commit 626813dCopy full SHA for 626813d
1 file changed
src/diagnostics.ts
@@ -181,6 +181,5 @@ export function traceMixed<T>(
181
export function shouldTrace(
182
channel: MinimalTracingChannel | undefined,
183
): channel is MinimalTracingChannel {
184
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-boolean-literal-compare
185
- return channel !== undefined && channel.hasSubscribers !== false;
+ return channel?.hasSubscribers === true;
186
}
0 commit comments