lib/rules/no-constant-condition.js
function reportIfConstant(node) {
            if (node.test && isConstant(node.test, true)) {
                context.report({ node: node.test, messageId: "unexpected" });
            }
        }
function reportIfConstant(node) {
            if (node.test && isConstant(node.test, true)) {
                context.report({ node: node.test, messageId: "unexpected" });
            }
        }
function reportIfConstant ( node ) { if ( node . test && isConstant ( node . test , true ) ) { context . report ( { node : node . test , messageId : "unexpected" } ) ; } }
Reports when the given node contains a constant condition.
@param {ASTNode} node The AST node to check.
@returns {void}
@private
Reports when the given node contains a constant condition .