Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
pford committed May 24, 2024
1 parent bc2681e commit 82bddc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Frame/Frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 82bddc0

Please sign in to comment.