Skip to content

Commit ce2b008

Browse files
author
Robert Jackson
committed
Ensure deprecation message shows correct heirarchy.
Previously it would show `ember-cli-htmlbars-inline-precompile` twice (once from the seeded array value, and again from the iteration). This fixes that error.
1 parent 46d7ae4 commit ce2b008

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ember-addon-main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ dBabelVersion: ${hasValidBabelVersion};`
9191
a => a.name === 'ember-cli-htmlbars-inline-precompile'
9292
);
9393
if (legacyInlinePrecompileAddon !== undefined) {
94-
let heirarchy = ['ember-cli-htmlbars-inline-precompile'];
95-
let pointer = this;
94+
let heirarchy = [];
95+
let pointer = legacyInlinePrecompileAddon;
9696
while (pointer.parent) {
9797
heirarchy.push(pointer.pkg.name);
9898
pointer = pointer.parent;

0 commit comments

Comments
 (0)