mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:16:05 +00:00
[codex] Make AbsolutePathBuf joins infallible (#16981)
Having to check for errors every time join is called is painful and unnecessary.
This commit is contained in:
1 parent
0b9e42f6f7
commit
f1a2b920f9
40 files changed
+361
-315
No files matched your search
@@ -84,7 +84,7 @@ pub fn resolve_symlink_write_paths(path: &Path) -> io::Result<SymlinkWritePaths>
|
||||
let next = if target.is_absolute() {
|
||||
AbsolutePathBuf::from_absolute_path(&target)
|
||||
} else if let Some(parent) = current.parent() {
|
||||
AbsolutePathBuf::resolve_path_against_base(&target, parent)
|
||||
Ok(AbsolutePathBuf::resolve_path_against_base(&target, parent))
|
||||
} else {
|
||||
return Ok(SymlinkWritePaths {
|
||||
read_path: None,
|
||||
|
||||
Reference in new issue
Block a user