Skip to content

Commit

Permalink
FIX Don't try to use option when it doesn't exist (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jun 17, 2024
1 parent c8b89ea commit 32a5e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funcs_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function filtered_modules($cmsMajor, $input)
$cmsMajor === MetaData::HIGHEST_STABLE_CMS_MAJOR
);

if ($input->getOption('unsupported-default-branch')) {
if ($input->hasOption('unsupported-default-branch') && $input->getOption('unsupported-default-branch')) {
$prevCmsMajor = $cmsMajor - 1;
$prevCmsRepos = MetaData::removeReposNotInCmsMajor(
MetaData::getAllRepositoryMetaData(false),
Expand Down

0 comments on commit 32a5e3b

Please sign in to comment.