From 2f80a8ee34423ecbf34d64b0d37ed5f5c3829584 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Mon, 18 Jul 2022 22:50:34 +0200 Subject: [PATCH] :bug: fix logic --- tests/src/make_test_data_available.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/src/make_test_data_available.hpp b/tests/src/make_test_data_available.hpp index 0215256ef..fca1c8da8 100644 --- a/tests/src/make_test_data_available.hpp +++ b/tests/src/make_test_data_available.hpp @@ -11,11 +11,7 @@ namespace utils inline bool check_testsuite_downloaded() { std::unique_ptr 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")