Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Zharinov committed Jun 27, 2020
1 parent 5c5d8d8 commit 5870d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/repository/updates/generate.ts
Expand Up @@ -27,7 +27,7 @@ function isTypesGroup(

function sortTypesGroup(upgrades: BranchUpgradeConfig[]): void {
const isTypesUpgrade = ({ depName }: BranchUpgradeConfig): boolean =>
depName.startsWith('@types/');
depName?.startsWith('@types/');
const regularUpgrades = upgrades.filter(
(upgrade) => !isTypesUpgrade(upgrade)
);
Expand Down

0 comments on commit 5870d6d

Please sign in to comment.