From 95b338304b39a11c311c63b017499a4423271de1 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Sat, 29 Mar 2014 03:34:43 -0700 Subject: [PATCH] whitespace and semicolons to satiate jshint --- ssf.js | 6 ++---- ssf.md | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ssf.js b/ssf.js index fd58447..4686d72 100644 --- a/ssf.js +++ b/ssf.js @@ -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]; } diff --git a/ssf.md b/ssf.md index 5fea3bd..4e2ea0e 100644 --- a/ssf.md +++ b/ssf.md @@ -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]; }