console: minor timeLogImpl() refactor · nodejs/node@b085b94 · GitHub
Skip to content

Commit b085b94

Browse files
cjihrigtargos
authored andcommitted
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 b085b94

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/internal/console/constructor.js

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)