TRY(): Call release_value() instead of expect_release_value()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
34c738116c
commit
2bc6398d3e
@ -192,5 +192,5 @@ template <> class Result<void>
|
|||||||
({ \
|
({ \
|
||||||
auto _expr_rc = (expr); \
|
auto _expr_rc = (expr); \
|
||||||
if (!_expr_rc.has_value()) return _expr_rc.release_error(); \
|
if (!_expr_rc.has_value()) return _expr_rc.release_error(); \
|
||||||
_expr_rc.expect_release_value("sanity check failed: has_error() returned false, yet result has no value"); \
|
_expr_rc.release_value(); \
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user