opt: make code more readable

This commit is contained in:
YiFang Xiao 2023-10-10 10:13:34 +08:00
parent d1d654226a
commit 375b599f6b

View file

@ -876,13 +876,12 @@ void ArticleRequest::stemmedSearchFinished()
continueMatching = true; continueMatching = true;
} }
if ( !continueMatching ) if ( !continueMatching ) {
footer += "</body></html>"; footer += "</body></html>";
{
appendString( footer );
} }
appendString( footer );
if ( continueMatching ) if ( continueMatching )
update(); update();
else else
@ -898,8 +897,6 @@ void ArticleRequest::compoundSearchNextStep( bool lastSearchSucceeded )
if ( lastGoodCompoundResult.size() ) // We have something to append if ( lastGoodCompoundResult.size() ) // We have something to append
{ {
// GD_DPRINTF( "Appending\n" );
if ( !firstCompoundWasFound ) { if ( !firstCompoundWasFound ) {
// Append the beginning // Append the beginning
footer += R"(<div class="gdstemmedsuggestion"><span class="gdstemmedsuggestion_head">)" footer += R"(<div class="gdstemmedsuggestion"><span class="gdstemmedsuggestion_head">)"