diff options
author | David Robillard <d@drobilla.net> | 2024-12-11 11:48:46 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-12-11 11:48:46 -0500 |
commit | 3f5e1a5466d60054d3abb52e82eec53f19ed7bc6 (patch) | |
tree | aa2f343d49c2192274b2f5a98e89ff4c111e9e01 | |
parent | efdfc1d84ce42a177ffea92571d00908f6d8bd48 (diff) | |
download | zix-3f5e1a5466d60054d3abb52e82eec53f19ed7bc6.tar.gz zix-3f5e1a5466d60054d3abb52e82eec53f19ed7bc6.tar.bz2 zix-3f5e1a5466d60054d3abb52e82eec53f19ed7bc6.zip |
Remove unnecessary null checks in test
-rw-r--r-- | test/cpp/test_path_std.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/cpp/test_path_std.cpp b/test/cpp/test_path_std.cpp index 7b592d8..58e2a87 100644 --- a/test/cpp/test_path_std.cpp +++ b/test/cpp/test_path_std.cpp @@ -483,8 +483,11 @@ run() } for (const auto& relatives : lexical_relatives) { - const Path l = relatives.lhs ? Path{relatives.lhs} : Path{}; - const Path r = relatives.rhs ? Path{relatives.rhs} : Path{}; + assert(relatives.lhs); + assert(relatives.rhs); + + const Path l = Path{relatives.lhs}; + const Path r = Path{relatives.rhs}; assert(match( l.lexically_relative(r), |