Skip to content

Commit

Permalink
Favour linter
Browse files Browse the repository at this point in the history
  • Loading branch information
maximkoretskiy committed Oct 31, 2019
1 parent bf25111 commit fd9866b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/rules-fabric.js
Expand Up @@ -43,17 +43,17 @@ function _getRequirements(inputDecls) {
function _expandContainments(inputDecls) {
var requiredMap = _getRequirements(inputDecls);
return inputDecls
.filter(function (decl) {
return !decl.contains;
}).map(function (decl) {
var dependensy = requiredMap[decl.prop];
if (dependensy) {
decl.requiredBy = dependensy.prop;
decl.basic = decl.basic || dependensy.basic;
decl.inherited = decl.inherited || dependensy.inherited;
}
return decl;
});
.filter(function (decl) {
return !decl.contains;
}).map(function (decl) {
var dependensy = requiredMap[decl.prop];
if (dependensy) {
decl.requiredBy = dependensy.prop;
decl.basic = decl.basic || dependensy.basic;
decl.inherited = decl.inherited || dependensy.inherited;
}
return decl;
});
}

var compiledDecls = _expandContainments(_compileDecls(decls));
Expand Down

0 comments on commit fd9866b

Please sign in to comment.