Skip to content

Fix check for `Diff::Line#match?`

What does this MR do and why?

Contributes to #10101

Problem

In our code base, we frequently provide the string "match" as type. In those cases, match? would return false.

Solution

Use strings comparison to check value equality

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Vasilii Iakliushin

Merge request reports

Loading