TRY(): Call release_value() instead of expect_release_value()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-17 15:15:27 +01:00
parent 34c738116c
commit 2bc6398d3e
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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(); \
}) })