Skip to content

Commit

Permalink
Update cli/src/main.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Dylan Frankland <dfrankland@users.noreply.github.com>
Signed-off-by: Federico Weber <federicoweber@gmail.com>
  • Loading branch information
federicoweber and dfrankland authored Sep 23, 2024
1 parent 6d392eb commit 618a171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async fn run_upload(
let (file_sets, file_counter) =
build_filesets(&repo, &junit_paths, team.clone(), &codeowners, exec_start)?;

if (!allow_missing_junit_files && file_counter.get_count() == 0) || file_sets.is_empty() {
if !allow_missing_junit_files && (file_counter.get_count() == 0 || file_sets.is_empty()) {
return Err(anyhow::anyhow!("No JUnit files found to upload."));
}

Expand Down

0 comments on commit 618a171

Please sign in to comment.