]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
putting '} else {' on the same line
authorTim Wood <washwithcare@gmail.com>
Sun, 19 Aug 2012 22:21:36 +0000 (15:21 -0700)
committerTim Wood <washwithcare@gmail.com>
Sun, 19 Aug 2012 22:21:36 +0000 (15:21 -0700)
moment.js

index af64ca7d8d0e9b5525d90cfedec9601bcba184c4..a9c8a9a26aa59800ac88bc8747efd1cfde612778 100644 (file)
--- a/moment.js
+++ b/moment.js
             if (withSuffix) {
                 if (typeof fromNow === 'function') {
                     output = fromNow(output);
-                }
-                else {
+                } else {
                     output = fromNow.replace(/%s/i, output);
                 }
             }