From 183d15fcfed998f152fdcc89784b2fa56d26cd46 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sat, 14 Feb 2015 02:36:57 +0100 Subject: [PATCH] OperatorNode: remove unnecessary elseif --- lib/expression/node/OperatorNode.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/expression/node/OperatorNode.js b/lib/expression/node/OperatorNode.js index 108ca2551..6116862a7 100644 --- a/lib/expression/node/OperatorNode.js +++ b/lib/expression/node/OperatorNode.js @@ -166,10 +166,7 @@ OperatorNode.prototype.toTex = function() { } if (rp instanceof OperatorNode) { - if (rp.op === '+' || rp.op === '-') { - rhb = true; - } - else if (rp.op === '*') { + if (rp.op === '+' || rp.op === '-' || rp.op === '*') { rhb = true; } }