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(
"Expected argument following " +
token.token);
auto result = valueRef->setValue(argToken.token);
const auto result = valueRef->setValue(argToken.token);
if (!result)
return Detail::InternalParseResult(result);
if (result.value() ==