whitespace and semicolons to satiate jshint

This commit is contained in:
SheetJS 2014-03-29 03:34:43 -07:00
parent af23ae85b4
commit 95b338304b
2 changed files with 4 additions and 8 deletions

6
ssf.js
View File

@ -455,12 +455,10 @@ function choose_fmt(fmt, v, o) {
case "<=": if(v <= thresh) found = true; break;
}
return found ? out : null;
}
};
var m1 = fmt[0].match(/\[([=<>]*)([-]?\d+)\]/);
var m2 = fmt[1].match(/\[([=<>]*)([-]?\d+)\]/);
return chk(v, m1, [l, fmt[0]])
|| chk(v, m2, [l, fmt[1]])
|| [l, fmt[m1&&m2?2:1]];
return chk(v, m1, [l, fmt[0]]) || chk(v, m2, [l, fmt[1]]) || [l, fmt[m1&&m2?2:1]];
}
return [l, ff];
}

6
ssf.md
View File

@ -937,12 +937,10 @@ Here we have to scan for conditions:
case "<=": if(v <= thresh) found = true; break;
}
return found ? out : null;
}
};
var m1 = fmt[0].match(/\[([=<>]*)([-]?\d+)\]/);
var m2 = fmt[1].match(/\[([=<>]*)([-]?\d+)\]/);
return chk(v, m1, [l, fmt[0]])
|| chk(v, m2, [l, fmt[1]])
|| [l, fmt[m1&&m2?2:1]];
return chk(v, m1, [l, fmt[0]]) || chk(v, m2, [l, fmt[1]]) || [l, fmt[m1&&m2?2:1]];
}
return [l, ff];
}