Skip to content

Commit

Permalink
add default value for logMessage 'forced' arg
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Nov 18, 2022
1 parent 4f80768 commit 03cba16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/log-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @param {string} message required, message to log
* @param {boolean} forced optional, to log message unconditionally
*/
export const logMessage = (source, message, forced) => {
export const logMessage = (source, message, forced = false) => {
if (forced || source.verbose) {
// eslint-disable-next-line no-console
console.log(`${source.name}: ${message}`);
Expand Down

0 comments on commit 03cba16

Please sign in to comment.