Skip to content

Commit

Permalink
Clang-format code
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinDenisenko committed Nov 21, 2024
1 parent 73e856f commit 0768fa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions astroimsum/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char* argv[])
using namespace astro;

try {
if(argc < 3) {
if (argc < 3) {
throw std::runtime_error("Wrong number of arguments");
}

Expand All @@ -41,15 +41,15 @@ int main(int argc, char* argv[])
array_t<string_t> images;
images.push_back(reference_image);
for (long i = 0; i < images_count; ++i) {
if(argc < i + 4) {
if (argc < i + 4) {
throw std::runtime_error("Wrong number of arguments");
}

images.push_back(argv[3 + i]);
}

sum_images(images);
} catch(const std::exception& ex) {
} catch (const std::exception& ex) {
std::cout << "Error: " << ex.what() << std::endl;
return 1;
}
Expand Down

0 comments on commit 0768fa8

Please sign in to comment.