Skip to content

Commit

Permalink
td/btd: Remove assert
Browse files Browse the repository at this point in the history
Differential Revision: D65419562

fbshipit-source-id: 708f3c1683f5a172e17cd90bccf7f59805e41910
  • Loading branch information
Aniket Mathur authored and facebook-github-bot committed Nov 5, 2024
1 parent 375acf4 commit 86e724b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion btd/src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub enum ValidationError {
}

fn in_universe(universe: &[TargetPattern], dep: &TargetLabel) -> bool {
universe.iter().any(|p| p.matches(dep))
universe.is_empty() || universe.iter().any(|p| p.matches(dep))
}

/// We want to track existing issues in the graph so we can keep it as
Expand Down
1 change: 0 additions & 1 deletion btd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ pub fn main(args: Args) -> Result<(), WorkflowError> {
// can log existing issues.
if let Some(error_file) = args.write_errors_to_file {
step("writing all errors to file");
assert!(!universe.is_empty());
let errors = check::dump_all_errors(&diff, &universe);

write_errors_to_file(&errors, error_file, output_format)?;
Expand Down

0 comments on commit 86e724b

Please sign in to comment.