Skip to content

Commit 377fc59

Browse files
committed
Avoid comment loop and do not post empty command comment when there are existing errors
1 parent 8c04e72 commit 377fc59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/request_handlers/github.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ async fn handle_rust_timer(
159159
}
160160
}
161161

162-
if valid_build_cmds.is_empty() {
163-
errors.push_str("@rust-timer command cannot be empty\n");
162+
if valid_build_cmds.is_empty() && errors.is_empty() {
163+
errors.push_str("Command cannot be empty\n");
164164
}
165165

166166
if !errors.is_empty() {

0 commit comments

Comments
 (0)