Skip to content

Commit

Permalink
Make extractClientReceiveState noexcept
Browse files Browse the repository at this point in the history
Reviewed By: iahs

Differential Revision: D62888856

fbshipit-source-id: 7aaa77016dfe9638d824dc59581df01d67e507e9
  • Loading branch information
praihan authored and facebook-github-bot committed Sep 17, 2024
1 parent 7402e8f commit a78d01c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thrift/lib/cpp2/async/FutureRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class FutureCallbackHelper {
std::move(result).error().first.throw_exception();
}

static ClientReceiveState&& extractClientReceiveState(PromiseResult& result) {
static ClientReceiveState&& extractClientReceiveState(
PromiseResult& result) noexcept {
if (result.hasValue()) {
return std::move(std::move(result).value().second);
}
Expand Down

0 comments on commit a78d01c

Please sign in to comment.