mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-23 17:43:47 +03:00
Merge pull request #3111 from gitbutlerapp/trivial-path-consistency-fix
use simpler path representation at call site
This commit is contained in:
commit
da97b0e31f
@ -125,9 +125,8 @@ impl FilesystemReader {
|
||||
|
||||
fn list_files<P: AsRef<std::path::Path>>(&self, path: P) -> Result<Vec<path::PathBuf>> {
|
||||
let path = path.as_ref();
|
||||
self.0.batch(|root| {
|
||||
fs::list_files(root.join(path), &[path::Path::new(".git").to_path_buf()])
|
||||
})?
|
||||
self.0
|
||||
.batch(|root| fs::list_files(root.join(path).as_path(), &[path::Path::new(".git")]))?
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user