Skip to content

Commit 670a959

Browse files
committed
doc: simplify recommendations in process.md
Remove recommendation that has no explanation. Make the other recommendation less wordy.
1 parent 1e5bafb commit 670a959

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/api/process.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<!-- source_link=lib/process.js -->
88

99
The `process` object provides information about, and control over, the current
10-
Node.js process. While it is available as a global, it is recommended to
11-
explicitly access it via require or import:
10+
Node.js process.
1211

1312
```mjs
1413
import process from 'process';
@@ -1487,8 +1486,7 @@ The following additional handling is implemented if the warning `type` is
14871486
### Avoiding duplicate warnings
14881487
14891488
As a best practice, warnings should be emitted only once per process. To do
1490-
so, it is recommended to place the `emitWarning()` behind a simple boolean
1491-
flag as illustrated in the example below:
1489+
so, place the `emitWarning()` behind a boolean.
14921490
14931491
```mjs
14941492
import { emitWarning } from 'process';

0 commit comments

Comments
 (0)