Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jan 17, 2025
1 parent 4d7d799 commit c53b84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/command/for.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ impl ForCommand {
return Ok(None);
}

if feeder.len() == 0 && ! feeder.feed_additional_line(core).is_ok() {
return Ok(None);
if feeder.len() == 0 {
feeder.feed_additional_line(core)?;
}

while command::eat_blank_with_comment(feeder, core, &mut ans.text) {}
Expand Down

0 comments on commit c53b84a

Please sign in to comment.