Skip to content

Commit

Permalink
bats tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Jan 3, 2025
1 parent 3eb25b3 commit 6cd53ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cmd/dolt/commands/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ func writeDiffResults(
filteredOldRow.RowDiff = oldRow.RowDiff
}

if oldRow.Row != nil && i < newRow.Row.Len() {
if newRow.Row != nil && i < newRow.Row.Len() {
filteredNewRow.Row = filteredNewRow.Row.Append(newRow.Row.Subslice(i, i+1))
filteredNewRow.ColDiffs = append(filteredNewRow.ColDiffs, newRow.ColDiffs[i])
filteredNewRow.RowDiff = newRow.RowDiff
Expand Down

0 comments on commit 6cd53ca

Please sign in to comment.