Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa1f420b authored by Greg Kaiser's avatar Greg Kaiser
Browse files

libpdx: Remove redundant code

We were doing the exact same thing regardless of the value of
'handle', so we remove the conditional to avoid future
confusion over this code.

Test: TreeHugger
Bug: 77721476
Change-Id: I65c5362db1e3b13d6cd5a6a58a92932852e5d41d
parent cbdc47ae
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -318,13 +318,7 @@ Status<void> Message::Reply(const RemoteHandle& handle) {
  PDX_TRACE_NAME("Message::ReplyFileHandle");
  auto svc = service_.lock();
  if (!replied_ && svc) {
    Status<void> ret;

    if (handle)
      ret = svc->endpoint()->MessageReply(this, handle.Get());
    else
      ret = svc->endpoint()->MessageReply(this, handle.Get());

    Status<void> ret = svc->endpoint()->MessageReply(this, handle.Get());
    replied_ = ret.ok();
    return ret;
  } else {