Skip to content

Commit

Permalink
🐛 fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jul 18, 2022
1 parent 0841d58 commit 2f80a8e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/src/make_test_data_available.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ namespace utils
inline bool check_testsuite_downloaded()
{
std::unique_ptr<std::FILE, decltype(&std::fclose)> file(std::fopen(TEST_DATA_DIRECTORY "/README.md", "r"), &std::fclose);
if (file)
{
return false;
}
return true;
return file.operator bool();
}

TEST_CASE("check test suite is downloaded")
Expand Down

0 comments on commit 2f80a8e

Please sign in to comment.