Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcs: use correct loop variable #958

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -76,8 +76,8 @@ private static boolean areFuzzyEqual(Patch a, Patch b) {
return false;
}
for (var j = 0; j < aHunk.source().lines().size(); j++) {
var aLine = aHunk.source().lines().get(i);
var bLine = bHunk.source().lines().get(i);
var aLine = aHunk.source().lines().get(j);
var bLine = bHunk.source().lines().get(j);
if (!aLine.equals(bLine)) {
return false;
}
@@ -87,8 +87,8 @@ private static boolean areFuzzyEqual(Patch a, Patch b) {
return false;
}
for (var j = 0; j < aHunk.target().lines().size(); j++) {
var aLine = aHunk.target().lines().get(i);
var bLine = bHunk.target().lines().get(i);
var aLine = aHunk.target().lines().get(j);
var bLine = bHunk.target().lines().get(j);
if (!aLine.equals(bLine)) {
return false;
}