Skip to content

Commit 057bca3

Browse files
Remove duplicated ws redirect handling
This is dead code since the case is already handled before.
1 parent 9aad499 commit 057bca3

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
@@ -728,11 +728,6 @@ fn resolve_workspace_redirect<'a>(
728728
}
729729

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

0 commit comments

Comments
 (0)