Merge "Add explicit Result::ok() checks where needed"
This commit is contained in:
commit
bc053268cf
1 changed files with 1 additions and 1 deletions
|
@ -853,7 +853,7 @@ static Result<void> DoUserspaceReboot() {
|
|||
sub_reason = "apex";
|
||||
return result;
|
||||
}
|
||||
if (!SwitchToMountNamespaceIfNeeded(NS_BOOTSTRAP)) {
|
||||
if (!SwitchToMountNamespaceIfNeeded(NS_BOOTSTRAP).ok()) {
|
||||
sub_reason = "ns_switch";
|
||||
return Error() << "Failed to switch to bootstrap namespace";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue