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 | 34 | let cwd = path |
| 35 | 35 | .as_ref() |
| 36 | 36 | .is_relative() |
| 37 | − .then(|| std::env::current_dir()) | |
| 37 | + .then(std::env::current_dir) | |
| 38 | 38 | .unwrap_or_else(|| Ok(PathBuf::default())) |
| 39 | 39 | .map_err(Error::CurrentWorkingDir)?; |
| 40 | 40 | realpath_opts(path, cwd, MAX_SYMLINKS) |