Skip to content

Commit

Permalink
clang-tidy: do not use else after return
Browse files Browse the repository at this point in the history
Found with llvm-else-after-return

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and hassec committed Jun 10, 2021
1 parent e9309f2 commit 17a8d74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/exiv2/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,8 @@ namespace Exiv2 {
{
if (byteOrder == littleEndian) {
return static_cast<byte>(buf.at(1)) << 8 | static_cast<byte>(buf.at(0));
} else {
return static_cast<byte>(buf.at(0)) << 8 | static_cast<byte>(buf.at(1));
}
return static_cast<byte>(buf.at(0)) << 8 | static_cast<byte>(buf.at(1));
}

//! Read a 4 byte unsigned long value from the data buffer
Expand Down

0 comments on commit 17a8d74

Please sign in to comment.