Skip to content

Commit

Permalink
lib/commons: Warn only if there is text to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Apr 12, 2018
1 parent 4b13f36 commit 273a82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/commons.js
Expand Up @@ -55,7 +55,7 @@ Commons.prototype.isIntegrationEnabled = function (fn) {
}

Commons.prototype.sendToOwners = function (text) {
if (global.configuration.getValue('disableSettingsWhispers')) return global.log.warning(text)
if (global.configuration.getValue('disableSettingsWhispers')) return text.length > 0 ? global.log.warning(text) : ''
for (let owner of global.commons.getOwners()) {
owner = {
username: owner,
Expand Down

0 comments on commit 273a82a

Please sign in to comment.