From 82bddc02809469890b947d5ab8220731ba865cbb Mon Sep 17 00:00:00 2001 From: Pam Harris Date: Thu, 23 May 2024 22:02:02 -0600 Subject: [PATCH] Fix format --- src/Frame/Frame.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Frame/Frame.cc b/src/Frame/Frame.cc index a83fe8cbd..dbd1ac44d 100644 --- a/src/Frame/Frame.cc +++ b/src/Frame/Frame.cc @@ -1939,9 +1939,9 @@ void Frame::SaveFile(const std::string& root_folder, const CARTA::SaveFile& save if (fs::exists(output_filename)) { if (output_filename.string() == in_file) { message = "Cannot overwrite the source image."; - } else if (CasacoreImageType(output_filename.string()) == casacore::ImageOpener::UNKNOWN) { + } else if (CasacoreImageType(output_filename.string()) == casacore::ImageOpener::UNKNOWN) { // Not an image - if (fs::is_directory(output_filename)) { + if (fs::is_directory(output_filename)) { message = "Cannot overwrite existing directory."; } } else if (!overwrite) {