From b6013a92e0705101eb8f8796c6b0117f03887462 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jan 2018 23:25:03 +0100 Subject: [PATCH] lib/curl/Request: merge two "try" blocks --- src/lib/curl/Request.cxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/curl/Request.cxx b/src/lib/curl/Request.cxx index 1b8bbd640..0a0dc2256 100644 --- a/src/lib/curl/Request.cxx +++ b/src/lib/curl/Request.cxx @@ -171,13 +171,7 @@ CurlRequest::Done(CURLcode result) noexcept msg = curl_easy_strerror(result); throw FormatRuntimeError("CURL failed: %s", msg); } - } catch (...) { - state = State::CLOSED; - handler.OnError(std::current_exception()); - return; - } - try { FinishBody(); } catch (...) { state = State::CLOSED;