Remove extra layer of parens.

This commit is contained in:
Jeff Young 2022-04-24 23:44:02 +01:00
parent 90bfe2d94b
commit 3bdae40881
1 changed files with 7 additions and 9 deletions

View File

@ -2212,21 +2212,19 @@ void FOOTPRINT::CheckFootprintAttributes( const std::function<void( const wxStri
{
wxString msg;
if( likelyAttr == FP_THROUGH_HOLE )
switch( likelyAttr )
{
case FP_THROUGH_HOLE:
msg.Printf( _( "(expected 'Through hole'; actual '%s')" ), GetTypeName() );
}
else if( likelyAttr == FP_SMD )
{
break;
case FP_SMD:
msg.Printf( _( "(expected 'SMD'; actual '%s')" ), GetTypeName() );
}
else
{
break;
default:
msg.Printf( _( "(expected 'Other'; actual '%s')" ), GetTypeName() );
break;
}
msg = wxT( "(" ) + msg + wxT( ")" );
(aErrorHandler)( msg );
}
}