Commit b085b94
console: minor timeLogImpl() refactor
This commit does two things:
- Reverses the boolean value returned by timeLogImpl(). The new
values make more sense semantically (IMO anyway), and save a
a single NOT operation.
- Explicitly check for undefined when calling _times.get()
instead of coercing the value.
PR-URL: #29100
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 31c50e5 commit b085b94Copy full SHA for b085b94
File tree
Expand file treeCollapse file tree
1 file changed
+6
-6
lines changedOpen diff view settings
Filter options
- lib/internal/console
Expand file treeCollapse file tree
1 file changed
+6
-6
lines changedOpen diff view settings
Collapse file
lib/internal/console/constructor.js
Copy file name to clipboardExpand all lines: lib/internal/console/constructor.js+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
310 | 310 | |
311 | 311 | |
312 | 312 | |
313 | | - |
| 313 | + |
314 | 314 | |
315 | | - |
| 315 | + |
316 | 316 | |
317 | 317 | |
318 | 318 | |
| ||
509 | 509 | |
510 | 510 | |
511 | 511 | |
512 | | - |
| 512 | + |
513 | 513 | |
514 | 514 | |
515 | | - |
| 515 | + |
516 | 516 | |
517 | | - |
| 517 | + |
518 | 518 | |
519 | 519 | |
520 | 520 | |
| ||
523 | 523 | |
524 | 524 | |
525 | 525 | |
526 | | - |
| 526 | + |
527 | 527 | |
528 | 528 | |
529 | 529 | |
|
0 commit comments