Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Get rid of pointless ternary

  • Loading branch information...
commit fe6aa917eddd2f6083eedbbc43f08622cce22f83 1 parent 0399287
@smfreegard smfreegard authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins.js
View
2  plugins.js
@@ -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]([
Please sign in to comment.
Something went wrong with that request. Please try again.