From 618a171660bb96137a7c0aa9b0c40720dd3879c3 Mon Sep 17 00:00:00 2001 From: Federico Weber Date: Mon, 23 Sep 2024 09:51:14 -0700 Subject: [PATCH] Update cli/src/main.rs Co-authored-by: Dylan Frankland Signed-off-by: Federico Weber --- cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index c43cf5fb..7ad7a5d5 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -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.")); }