Skip to content

Commit 53b3d21

Browse files
committed
harden equality function
1 parent 825e9cb commit 53b3d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patch.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ let operation_eq a b = match a, b with
226226
| Create a, Create b -> String.equal a b
227227
| Edit (a, a'), Edit (b, b')
228228
| Rename_only (a, a'), Rename_only (b, b') -> String.equal a b && String.equal a' b'
229-
| _ -> false
229+
| Delete _, _ | Create _, _ | Edit _, _ | Rename_only _, _ -> false
230230

231231
let no_file = "/dev/null"
232232

0 commit comments

Comments
 (0)