Skip to content

Commit

Permalink
fix: replace nullish coalescing operator (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
hchangjae authored Aug 10, 2023
1 parent 1aacfd2 commit 4c779a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function appendChildLogger (parentLogger, childLogger) {
function setupBaseLogFunctions (logger, levels, proto) {
const logFunctions = {}
levels.forEach(level => {
logFunctions[level] = proto[level] ? proto[level] : (_console[level] || _console[logFallbackMap[level] ?? 'log'] || noop)
logFunctions[level] = proto[level] ? proto[level] : (_console[level] || _console[logFallbackMap[level] || 'log'] || noop)
})
logger[baseLogFunctionSymbol] = logFunctions
}
Expand Down

0 comments on commit 4c779a4

Please sign in to comment.