Simplify ifs

This commit is contained in:
Kim Joar Bekkelund
2013-05-06 12:52:01 +02:00
committed by Luke Page
parent 5cb5f561c8
commit 5444e9482b
2 changed files with 2 additions and 9 deletions

View File

@@ -8,10 +8,7 @@ tree.Rule = function (name, value, important, merge, index, currentFileInfo, inl
this.index = index;
this.currentFileInfo = currentFileInfo;
this.inline = inline || false;
if (name.charAt(0) === '@') {
this.variable = true;
} else { this.variable = false }
this.variable = (name.charAt(0) === '@');
};
tree.Rule.prototype = {