From 428c4366299daab51c477c7f480195cd5d68c89f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 27 Apr 2021 15:07:04 -0700 Subject: [PATCH] clang-tidy: simplify boolean expression Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev --- src/tiffimage_int.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tiffimage_int.cpp b/src/tiffimage_int.cpp index 7aaf9f6b..50d0f445 100644 --- a/src/tiffimage_int.cpp +++ b/src/tiffimage_int.cpp @@ -2061,17 +2061,16 @@ namespace Exiv2 { }; // If tag, group is one of the image tags listed above -> bingo! - if (find(tiffImageTags, TiffImgTagStruct::Key(tag, group))) { #ifdef EXIV2_DEBUG_MESSAGES + if (find(tiffImageTags, TiffImgTagStruct::Key(tag, group))) { ExifKey key(tag, groupName(group)); std::cerr << "Image tag: " << key << " (3)\n"; -#endif return true; } -#ifdef EXIV2_DEBUG_MESSAGES std::cerr << "Not an image tag: " << tag << " (4)\n"; -#endif return false; +#endif + return find(tiffImageTags, TiffImgTagStruct::Key(tag, group)); } TiffHeader::TiffHeader(ByteOrder byteOrder, uint32_t offset, bool hasImageTags)