Skip to content

Commit 908fa68

Browse files
committed
fixup: comments from PR
1 parent 3d011bd commit 908fa68

File tree

1 file changed

+2
-2
lines changed
  • packages/schematics/update/update

1 file changed

+2
-2
lines changed

packages/schematics/update/update/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,12 @@ function _getUpdateMetadata(
380380
`packageGroup metadata of package ${packageJson.name} is malformed. Ignoring.`,
381381
);
382382
}
383+
384+
result.packageGroupName = Object.keys(result.packageGroup)[0];
383385
}
384386

385387
if (typeof metadata['packageGroupName'] == 'string') {
386388
result.packageGroupName = metadata['packageGroupName'];
387-
} else {
388-
result.packageGroupName = Object.keys(result.packageGroup)[0];
389389
}
390390

391391
if (metadata['requirements']) {

0 commit comments

Comments
 (0)