Use return value directly instead of SAPI_ASSIGN_OR_RETURN dance

PiperOrigin-RevId: 553449209
Change-Id: Id344bc84a42edfaf92b95dc8cf92582001183494
This commit is contained in:
Wiktor Garbacz 2023-08-03 05:45:16 -07:00 committed by Copybara-Service
parent fc8a2340c7
commit 29b7b49325

View File

@ -170,8 +170,7 @@ absl::StatusOr<std::unique_ptr<Policy>> StackTracePeer::GetPolicy(
// Add the binary itself.
.AddFileAt(exe_path, app_path);
SAPI_ASSIGN_OR_RETURN(std::unique_ptr<Policy> policy, builder.TryBuild());
return std::move(policy);
return builder.TryBuild();
}
namespace internal {