Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Minor]: Refactor to use Result.transpose() (#11882)
`Result.transpose()` converts `Result<Option<T>>` to `Option<Result<T>>`. > Ok(None) will be mapped to None. Ok(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)). - https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
- Loading branch information