Skip to content

Commit 09a72df

Browse files
Remove duplicated ws redirect handling
This is dead code since the case is already handled before.
1 parent 4d554ce commit 09a72df

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

josh-core/src/filter/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,6 @@ fn resolve_workspace_redirect<'a>(
727727
}
728728

729729
fn get_workspace<'a>(repo: &'a git2::Repository, tree: &'a git2::Tree<'a>, path: &Path) -> Filter {
730-
let path = if let Some((_, path)) = resolve_workspace_redirect(repo, &tree, path) {
731-
path
732-
} else {
733-
path.to_owned()
734-
};
735730
let wsj_file = file(Path::new("workspace.josh").to_owned());
736731
let base = to_filter(Op::Subdir(path.to_owned()));
737732
let wsj_file = chain(base, wsj_file);

0 commit comments

Comments
 (0)