Skip to content

Commit e025506

Browse files
Qardclaude
andcommitted
lib: fix lint errors after rebase
- Add missing Promise primordials to diagnostics_channel.js - Fix JSDoc @returns and @param issues in metrics.js and object_identity.js - Wrap setImmediate/Promise.then callbacks in mustCall in tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5fd8c22 commit e025506

6 files changed

Lines changed: 115 additions & 321 deletions

File tree

doc/api/diagnostics_channel.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -132,35 +132,6 @@ if (diagnostics_channel.hasSubscribers('my-channel')) {
132132
}
133133
```
134134

135-
#### `diagnostics_channel.hasChannel(name)`
136-
137-
<!-- YAML
138-
added: REPLACEME
139-
-->
140-
141-
* `name` {string|symbol} The channel name
142-
143-
* Returns: {boolean} If the channel exists
144-
145-
Check if a channel with the given name exists. This is useful to check if a
146-
channel has been created to add additional logic if it's the first time.
147-
148-
```mjs
149-
import diagnostics_channel from 'node:diagnostics_channel';
150-
151-
if (!diagnostics_channel.hasChannel('my-channel')) {
152-
// Channel does not exist yet, do additional setup
153-
}
154-
```
155-
156-
```cjs
157-
const diagnostics_channel = require('node:diagnostics_channel');
158-
159-
if (!diagnostics_channel.hasChannel('my-channel')) {
160-
// Channel does not exist yet, do additional setup
161-
}
162-
```
163-
164135
#### `diagnostics_channel.channel(name)`
165136

166137
<!-- YAML

0 commit comments

Comments
 (0)