Tiny cleanup in catch_clara.cpp

This commit is contained in:
Martin Hořeňovský 2022-04-24 12:33:16 +02:00
parent 07cdef2096
commit 880285b433
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -233,7 +233,7 @@ namespace Catch {
return Detail::InternalParseResult::runtimeError( return Detail::InternalParseResult::runtimeError(
"Expected argument following " + "Expected argument following " +
token.token); token.token);
auto result = valueRef->setValue(argToken.token); const auto result = valueRef->setValue(argToken.token);
if (!result) if (!result)
return Detail::InternalParseResult(result); return Detail::InternalParseResult(result);
if (result.value() == if (result.value() ==