Skip to content

Commit 01f6a85

Browse files
Minor coding style fixes
1 parent c506ef2 commit 01f6a85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

json-diff.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,17 @@ var json_diff = (function() {
118118
//row[j] now contains the length of the lcs
119119
//compute the edit sequence from the table
120120
var edit = [];
121-
while (i > -1 && j > -1){
122-
switch (c[i][j]){
121+
while (i > -1 && j > -1) {
122+
switch (c[i][j]) {
123123
default:
124124
edit.unshift('=');
125125
i--; j--;
126126
break;
127-
case (j && c[i][j-1]):
127+
case j && c[i][j - 1]:
128128
edit.unshift('+');
129129
j--;
130130
break;
131-
case (i && c[i-1][j]):
131+
case i && c[i - 1][j]:
132132
edit.unshift('-');
133133
i--;
134134
break;

0 commit comments

Comments
 (0)