Permalink
Browse files

Get rid of pointless ternary

  • Loading branch information...
1 parent 0399287 commit fe6aa917eddd2f6083eedbbc43f08622cce22f83 @smfreegard smfreegard committed Jan 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins.js
View
@@ -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]([

0 comments on commit fe6aa91

Please sign in to comment.