Skip to content

Commit

Permalink
[client/cpp] - added missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
emilbon99 committed Sep 26, 2024
1 parent 16a2db0 commit 561c7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/cpp/framer/streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ std::pair<Streamer, freighter::Error> FrameClient::openStreamer(
auto req = api::v1::FrameStreamerRequest();
config.toProto(req);
auto exc2 = s->send(req);
if (exc2) {Streamer(std::move(s)), exc2};
if (exc2) return {Streamer(std::move(s)), exc2};
auto [_, resExc] = s->receive();
return {Streamer(std::move(s)), resExc};
}
Expand Down

0 comments on commit 561c7c6

Please sign in to comment.