From d6adc3027e646c18b27aeb444d8e06af58a3662e Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Mon, 11 May 2020 07:58:58 +0200 Subject: [PATCH] [BL] Fix readability-else-after-return warning. --- BaseLib/FileTools.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BaseLib/FileTools.cpp b/BaseLib/FileTools.cpp index 14779a3085d..88024eb92d3 100644 --- a/BaseLib/FileTools.cpp +++ b/BaseLib/FileTools.cpp @@ -197,11 +197,7 @@ std::string copyPathToFileName(const std::string &file_name, { return filePath.string(); } - else - { - return (fs::path(source) /= filePath).string(); - } - + return (fs::path(source) /= filePath).string(); } std::string extractPath(std::string const& pathname) -- GitLab