Skip to content

Commit

Permalink
🐛 fix fuzzy equals for maven errors (#626)
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com>
  • Loading branch information
pranavgaikwad authored Feb 6, 2025
1 parent 7cba2a0 commit 3228500
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ def fuzzy_equals(self, error2: Task, offset: int = 1) -> bool:
return False
if not super().__eq__(error2):
return False
# if both errors don't have error lines and super()
# is equal, then these must be equal
if not self.error_lines and not error2.error_lines:
return True
if not self.error_lines or not error2.error_lines:
return False
matching_lines: list[int] = []
Expand Down

0 comments on commit 3228500

Please sign in to comment.