Skip to content

Commit

Permalink
Get rid of pointless ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
smfreegard committed Jan 14, 2012
1 parent 0399287 commit fe6aa91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins.js
Expand Up @@ -208,7 +208,7 @@ plugins.run_next_hook = function(hook, object, params) {
// Log what is being run
if (item && hook !== 'log') {
var log = 'logdebug';
var is_not_cont = (retval !== constants.cont && logger.would_log(logger.LOGINFO)) ? true : false;
var is_not_cont = (retval !== constants.cont && logger.would_log(logger.LOGINFO));
if (is_not_cont) log = 'loginfo';
if (is_not_cont || logger.would_log(logger.LOGDEBUG)) {
object[log]([
Expand Down

0 comments on commit fe6aa91

Please sign in to comment.