mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Use return value directly instead of SAPI_ASSIGN_OR_RETURN dance
PiperOrigin-RevId: 553449209 Change-Id: Id344bc84a42edfaf92b95dc8cf92582001183494
This commit is contained in:
parent
fc8a2340c7
commit
29b7b49325
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user