Use destructures and refactor code for readability (#4844)

* Use destructuring for readability and optimzations at for loop length property

* Destructure variables for easy maintainability of code

* PR review fix

* refactor: fix linting

* Use destructures and refactor code for better readability

* Remove merge conflict line

* lint before commit
This commit is contained in:
Prashant Andani authored and Lucas Duailibe committed 2018-07-17 18:01:44 -03:00
1 parent 60f1e1d37b
commit cdcb7b11c9
7 files changed
+10 -14

No files matched your search

+1 -1
View File
@@ -480,7 +480,7 @@ function parseNestedCSS(node) {
function parseWithParser(parser, text) {
const parsed = parseFrontMatter(text);
const frontMatter = parsed.frontMatter;
const { frontMatter } = parsed;
text = parsed.content;
let result;