Skip to content

Commit

Permalink
COMP: fixed cppcheck warning about dead branch
Browse files Browse the repository at this point in the history
Failmode is always true at this line, because when it's false, a previous branch returned a few lines above.
  • Loading branch information
seanm authored and hjmjohnson committed Jan 24, 2025
1 parent 7bd3633 commit d9a21c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/IO/GE/test/itkGEImageIOTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ itkGEImageIOTest(int argc, char * argv[])
if (Failmode)
{
std::cout << "Caught unexpected exception. Test Failed!" << std::endl;
std::cout << e << std::endl;
return EXIT_FAILURE;
}
else
{
std::cout << "Caught expected exception. Test Passed!" << std::endl;
return EXIT_SUCCESS;
}
std::cout << e << std::endl;
return Failmode ? 1 : 0;
}

if (failmode == std::string("true"))
Expand Down

0 comments on commit d9a21c8

Please sign in to comment.