Skip to content

Commit 0528d9e

Browse files
committed
JS is not C
1 parent 51279ee commit 0528d9e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,22 @@ module.exports = async function emberCliUpdate({
112112
);
113113
packageName = downloadedPackage.name;
114114
}
115-
let blueprintName;
115+
116+
let blueprintName = packageName;
117+
116118
if (blueprintArgs.blueprintName !== blueprintArgs.packageName) {
117119
blueprintName = blueprintArgs.blueprintName;
118-
} else {
119-
blueprintName = packageName;
120120
}
121121

122122
let existingBlueprint = findBlueprint(
123123
emberCliUpdateJson,
124124
packageName,
125125
blueprintName
126126
);
127-
if (existingBlueprint) {
128-
blueprint = existingBlueprint;
129-
} else {
127+
128+
blueprint = existingBlueprint;
129+
130+
if (!existingBlueprint) {
130131
blueprint = loadSafeBlueprint({
131132
packageName,
132133
name: blueprintName,

0 commit comments

Comments
 (0)