Skip to content

console: minor timeLogImpl() refactor#29100

Closed
cjihrig wants to merge 1 commit intonodejs:masterfrom
cjihrig:console
Closed

console: minor timeLogImpl() refactor#29100
cjihrig wants to merge 1 commit intonodejs:masterfrom
cjihrig:console

Conversation

@cjihrig
Copy link
Copy Markdown
Contributor

@cjihrig cjihrig commented Aug 13, 2019

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.
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. console Issues and PRs related to the console subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants