From 375b599f6b5a66ef5958e4a2268bd20f466250c8 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Tue, 10 Oct 2023 10:13:34 +0800 Subject: [PATCH] opt: make code more readable --- src/article_maker.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/article_maker.cc b/src/article_maker.cc index ed360b7e..0cd88de8 100644 --- a/src/article_maker.cc +++ b/src/article_maker.cc @@ -876,13 +876,12 @@ void ArticleRequest::stemmedSearchFinished() continueMatching = true; } - if ( !continueMatching ) + if ( !continueMatching ) { footer += ""; - - { - 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"(
)"