Fix missing "else".

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14831
This commit is contained in:
Jeff Young 2023-05-28 19:49:04 +01:00
parent 570978fa7f
commit 8820df2187
1 changed files with 1 additions and 2 deletions

View File

@ -360,8 +360,7 @@ int LIB_SYMBOL::Compare( const LIB_SYMBOL& aRhs, int aCompareFlags, REPORTER* aR
if( !aReporter ) if( !aReporter )
return retv; return retv;
} }
else if( int tmp2 = aPinItem->compare( *bPin, aCompareFlags ) )
if( int tmp2 = aPinItem->compare( *bPin, aCompareFlags ) )
{ {
retv = tmp2; retv = tmp2;
REPORT( wxString::Format( _( "Pin %s differs." ), aPin->GetNumber() ) ); REPORT( wxString::Format( _( "Pin %s differs." ), aPin->GetNumber() ) );