Skip to content

Commit

Permalink
nullish coalesce instead of OR
Browse files Browse the repository at this point in the history
  • Loading branch information
rcebulko authored Aug 2, 2021
1 parent bc78ba8 commit 74107de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ function getUserLogger(suffix) {
*/
export function dev() {
return (
logs.dev ||
logs.dev ??
(logs.dev = callLogConstructor((logNum) =>
logNum >= 3 ? LogLevel.FINE : logNum >= 2 ? LogLevel.INFO : LogLevel.OFF
))
Expand Down

0 comments on commit 74107de

Please sign in to comment.