From 90f9cecf7b8a267f2c6e59558328b2e87b0bce45 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 28 Dec 2019 23:39:56 +0100 Subject: [PATCH] Remove unnecessary else. --- src/mastoapi.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mastoapi.cpp b/src/mastoapi.cpp index 114f21a..cbffbe8 100644 --- a/src/mastoapi.cpp +++ b/src/mastoapi.cpp @@ -91,10 +91,7 @@ void MastoAPI::post_item(const Item &item) { throw HTTPException{ret.http_error_code}; } - else - { - throw MastodonException{ret.error_code}; - } + throw MastodonException{ret.error_code}; } BOOST_LOG_TRIVIAL(debug) << "Posted status with GUID: " << item.guid; }