From 24a8139233c5eea7d17fa9eb2458ee0dd22ceff2 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 13 May 2021 18:59:21 -0700 Subject: [PATCH] clang-tidy: fix badly indented if Found with readability-misleading-indentation Signed-off-by: Rosen Penev --- src/tiffimage.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tiffimage.cpp b/src/tiffimage.cpp index 4c253774..58922289 100644 --- a/src/tiffimage.cpp +++ b/src/tiffimage.cpp @@ -340,10 +340,12 @@ namespace Exiv2 { { if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError()); // Ensure that this is the correct image type - if ( imageType() == ImageType::none ) - if (!isTiffType(*io_, false)) { - if (io_->error() || io_->eof()) throw Error(kerFailedToReadImageData); - throw Error(kerNotAJpeg); + if (imageType() == ImageType::none) { + if (!isTiffType(*io_, false)) { + if (io_->error() || io_->eof()) + throw Error(kerFailedToReadImageData); + throw Error(kerNotAJpeg); + } } io_->seek(0,BasicIo::beg);