Skip to content

Commit c609962

Browse files
committed
ignore empty "Help wanted" updates
1 parent b5e594d commit c609962

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/rust-project-goals-cli-llm/src/updates.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,11 @@ fn help_wanted(
196196
while lines.peek().is_some() {
197197
while let Some(line) = lines.next() {
198198
if let Some(c) = HELP_WANTED.captures(line) {
199-
help_wanted.push(HelpWanted {
200-
text: c["text"].to_string(),
201-
});
202-
break;
199+
let text = c["text"].trim().to_string();
200+
if !text.is_empty() {
201+
help_wanted.push(HelpWanted { text });
202+
break;
203+
}
203204
}
204205
}
205206

0 commit comments

Comments
 (0)