From: Tim Wood Date: Sun, 19 Aug 2012 22:21:36 +0000 (-0700) Subject: putting '} else {' on the same line X-Git-Tag: 1.7.1~13^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a17bb7171be91f7f7424b7ecd145423286c7dd7e;p=thirdparty%2Fmoment.git putting '} else {' on the same line --- diff --git a/moment.js b/moment.js index af64ca7d8..a9c8a9a26 100644 --- a/moment.js +++ b/moment.js @@ -1053,8 +1053,7 @@ if (withSuffix) { if (typeof fromNow === 'function') { output = fromNow(output); - } - else { + } else { output = fromNow.replace(/%s/i, output); } }