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