Skip to content

Commit

Permalink
fix(utils): fix linting errors
Browse files Browse the repository at this point in the history
Fix linting errors
  • Loading branch information
rajdee committed Mar 19, 2018
1 parent 467daa6 commit f5239a0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/utils/mapped-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ class MappedList {
const { symbols, spriteModules, allModules, rules } = this;
const data = symbols.reduce((acc, symbol) => {
const resource = symbol.request.file;
const module = spriteModules.find(m => 'resource' in m
? m.resource.split('?')[0] === resource
: false
);
const module = spriteModules.find((m) => {
return 'resource' in m ? m.resource.split('?')[0] === resource : false;
});
const rule = getMatchedRule(resource, rules);
const options = rule ? getLoaderOptions(spriteLoaderPath, rule) : null;
let spriteFilename = (options && options.spriteFilename)
Expand Down

0 comments on commit f5239a0

Please sign in to comment.