mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Simplify ifs
This commit is contained in:
committed by
Luke Page
parent
5cb5f561c8
commit
5444e9482b
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user