Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Jul 24, 2019
1 parent 6febc3a commit 47d5d20
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions transforms/globals-to-ember-data-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,17 @@ function transform(file, api /*, options*/) {
if (foundMapping) {
let newSource = foundMapping.source;
if (module.source !== newSource) {
root.find(j.ImportDeclaration, {
source: {
type: 'Literal',
value: module.source
}
})
.find(j.Literal)
.forEach((importLiteral) => {
j(importLiteral).replaceWith(j.literal(newSource))
});
root
.find(j.ImportDeclaration, {
source: {
type: 'Literal',
value: module.source
}
})
.find(j.Literal)
.forEach(importLiteral => {
j(importLiteral).replaceWith(j.literal(newSource));
});
}
}
}
Expand Down Expand Up @@ -495,7 +496,7 @@ function transform(file, api /*, options*/) {
}
} else {
// Update literal paths based on mappings from 'ember-data/model' to '@ember-data/model'
updateLiteralPaths(root, mod, mappings)
updateLiteralPaths(root, mod, mappings);
}
});
}
Expand Down

0 comments on commit 47d5d20

Please sign in to comment.