We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c506ef2 commit 01f6a85Copy full SHA for 01f6a85
json-diff.js
@@ -118,17 +118,17 @@ var json_diff = (function() {
118
//row[j] now contains the length of the lcs
119
//compute the edit sequence from the table
120
var edit = [];
121
- while (i > -1 && j > -1){
122
- switch (c[i][j]){
+ while (i > -1 && j > -1) {
+ switch (c[i][j]) {
123
default:
124
edit.unshift('=');
125
i--; j--;
126
break;
127
- case (j && c[i][j-1]):
+ case j && c[i][j - 1]:
128
edit.unshift('+');
129
j--;
130
131
- case (i && c[i-1][j]):
+ case i && c[i - 1][j]:
132
edit.unshift('-');
133
i--;
134
0 commit comments