Skip to content

Commit

Permalink
Issue #1510: enhance or fix code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Dec 16, 2021
1 parent 2423761 commit 3945033
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Kernel/System/MigrateFromOTRS/OTOBOFrameworkVersionCheck.pm
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ sub _CheckOTOBOVersion {
my $Message = $Self->{LanguageObject}->Translate("Check if OTOBO version is correct.");
my $Location = "$OTOBOHome/RELEASE";

# load RELEASE file
# check existence of the RELEASE file
if ( !-e $Location ) {
return
{
Expand All @@ -187,6 +187,7 @@ sub _CheckOTOBOVersion {
};
}

# parse RELEASE file
my $MainObject = $Kernel::OM->Get('Kernel::System::Main');
my $ReleaseInfo = $MainObject->GetReleaseInfo( Location => $Location );

Expand Down Expand Up @@ -256,6 +257,7 @@ sub _CheckOTRSRelease {
'OTRS' => 'https://otrs.com/',
'Znuny LTS' => 'https://www.znuny.org/',
);

if ( !$ProductNameIsValid{ $ReleaseInfo->{Product} } ) {
my $ExpectedNames = join ', ', map {"'$_'"} sort keys %ProductNameIsValid;

Expand Down

0 comments on commit 3945033

Please sign in to comment.