Skip to content

Commit 626813d

Browse files
committed
condense
1 parent add27e4 commit 626813d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/diagnostics.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,5 @@ export function traceMixed<T>(
181181
export function shouldTrace(
182182
channel: MinimalTracingChannel | undefined,
183183
): channel is MinimalTracingChannel {
184-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-boolean-literal-compare
185-
return channel !== undefined && channel.hasSubscribers !== false;
184+
return channel?.hasSubscribers === true;
186185
}

0 commit comments

Comments
 (0)