]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fixup: Simplify branch-added code
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Jul 2021 17:43:33 +0000 (13:43 -0400)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Jul 2021 17:43:55 +0000 (13:43 -0400)
src/FwdState.cc

index de2fbcdf041f1afa14399118e65504b0ae4ae890..60b3a949ec3e5eabab20da2c4d161d5c17b78db4 100644 (file)
@@ -796,10 +796,8 @@ FwdState::advanceDestination(const char *stepDescription, const Comm::Connection
     } catch (...) {
         debugs (17, 2, "exception while trying to " << stepDescription << ": " << CurrentException);
         closePendingConnection(conn, "connection preparation exception");
-        if (!err) {
-            const auto error = new ErrorState(ERR_GATEWAY_FAILURE, Http::scInternalServerError, request, al);
-            fail(error);
-        }
+        if (!err)
+            fail(new ErrorState(ERR_GATEWAY_FAILURE, Http::scInternalServerError, request, al));
         retryOrBail();
     }
 }