From 17a8d743a571ec1a1dc2e375475e3e54fb29ca0f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 10 Jun 2021 01:58:22 -0700 Subject: [PATCH] clang-tidy: do not use else after return Found with llvm-else-after-return Signed-off-by: Rosen Penev --- include/exiv2/types.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exiv2/types.hpp b/include/exiv2/types.hpp index 8bdbad2a..b33a90c7 100644 --- a/include/exiv2/types.hpp +++ b/include/exiv2/types.hpp @@ -262,9 +262,8 @@ namespace Exiv2 { { if (byteOrder == littleEndian) { return static_cast(buf.at(1)) << 8 | static_cast(buf.at(0)); - } else { - return static_cast(buf.at(0)) << 8 | static_cast(buf.at(1)); } + return static_cast(buf.at(0)) << 8 | static_cast(buf.at(1)); } //! Read a 4 byte unsigned long value from the data buffer