Showing the changes to git-path/src (1 of 2 files). Show all
Unified · Split
| @@ -34,7 +34,7 @@ pub(crate) mod function { · 33 unmodified lines | |||
| 34 | let cwd = path | 34 | let cwd = path |
| 35 | .as_ref() | 35 | .as_ref() |
| 36 | .is_relative() | 36 | .is_relative() |
| 37 | .then(|| std::env::current_dir()) | 37 | .then(std::env::current_dir) |
| 38 | .unwrap_or_else(|| Ok(PathBuf::default())) | 38 | .unwrap_or_else(|| Ok(PathBuf::default())) |
| 39 | .map_err(Error::CurrentWorkingDir)?; | 39 | .map_err(Error::CurrentWorkingDir)?; |
| 40 | realpath_opts(path, cwd, MAX_SYMLINKS) | 40 | realpath_opts(path, cwd, MAX_SYMLINKS) |