Skip to content

Commit

Permalink
review: fix Event::ReachAccepted mistakenly taken into account
Browse files Browse the repository at this point in the history
  • Loading branch information
Equim-chan committed Feb 3, 2021
1 parent 60376fe commit e39dae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/review.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ pub fn review(review_args: &ReviewArgs) -> Result<Review> {

fn next_action_for_compare(events: &[Event]) -> &[Event] {
match events[0] {
Event::Dora { .. } => next_action_for_compare(&events[1..]),
Event::Dora { .. } | Event::ReachAccepted { .. } => next_action_for_compare(&events[1..]),
Event::Hora { .. } => &events[..3], // considering multiple rons
Event::Chi { .. } | Event::Pon { .. } | Event::Reach { .. } => &events[..2],
_ => &events[..1],
Expand Down

0 comments on commit e39dae3

Please sign in to comment.