Merge pull request #1225 from xiaoyifang/opt/refactor-code

opt: make code more readable
This commit is contained in:
xiaoyifang 2023-10-10 22:57:59 +08:00 committed by GitHub
commit 0bf06a3099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -880,13 +880,12 @@ void ArticleRequest::stemmedSearchFinished()
continueMatching = true;
}
if ( !continueMatching )
if ( !continueMatching ) {
footer += "</body></html>";
{
appendString( footer );
}
appendString( footer );
if ( continueMatching )
update();
else
@ -902,8 +901,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">)"