Commit 9d3949ab authored by Filipa Lacerda's avatar Filipa Lacerda

inline conditions

parent 6d966143
...@@ -76,8 +76,7 @@ ...@@ -76,8 +76,7 @@
* @returns {Boolean|Undefined} * @returns {Boolean|Undefined}
*/ */
isFolder() { isFolder() {
return this.model.children && return this.model.children && this.model.children.length > 0;
this.model.children.length > 0;
}, },
/** /**
...@@ -97,8 +96,7 @@ ...@@ -97,8 +96,7 @@
* @returns {Number|Undefined} The number of environments for the current folder. * @returns {Number|Undefined} The number of environments for the current folder.
*/ */
childrenCounter() { childrenCounter() {
return this.model.children && return this.model.children && this.model.children.length;
this.model.children.length;
}, },
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment