From dffe0699859b84418a7ca50d6eb77b3068a7d38e Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 13 Aug 2023 12:16:09 -0700 Subject: [PATCH] conflicts: remove redundant check of `num_sides` from condition Since `Merge` always has one more "adds" than "removes", there's no need to check both of them. I really should have noticed this in 0b3b62a777ba. --- lib/src/conflicts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/conflicts.rs b/lib/src/conflicts.rs index 3dc5066ab..696ba96ac 100644 --- a/lib/src/conflicts.rs +++ b/lib/src/conflicts.rs @@ -205,7 +205,7 @@ pub fn parse_conflict(input: &[u8], num_sides: usize) -> Option