]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
fixed lint errors
authorIan Remmel <design@ianwremmel.com>
Thu, 12 Sep 2013 12:59:31 +0000 (08:59 -0400)
committerIan Remmel <design@ianwremmel.com>
Thu, 12 Sep 2013 12:59:31 +0000 (08:59 -0400)
moment.js
test/moment/duration.js

index 21863fbc783bad5fc26ed8407041ab009bae7445..69b96409c10ce18f80ae3c4d72f13ddb03dd822d 100644 (file)
--- a/moment.js
+++ b/moment.js
             };
         } else if (twentyFourHourMatched) {
             duration = {
-            y: 0,
-            d: 0,
-            h: ~~twentyFourHourMatched[1],
-            m: ~~twentyFourHourMatched[2],
-            s: 0,
-            ms: 0
+                y: 0,
+                d: 0,
+                h: ~~twentyFourHourMatched[1],
+                m: ~~twentyFourHourMatched[2],
+                s: 0,
+                ms: 0
             };
         }
 
index 3b24ea0f1b4d59f26838cdca18c5291551b5ceab..ed0605afba2c30f84be30c0613a06e410c3e4b77 100644 (file)
@@ -139,7 +139,7 @@ exports.duration = {
         test.done();
     },
 
-    "instantiation from 24-hour time zero" : function(test) {
+    "instantiation from 24-hour time zero" : function (test) {
         test.expect(6);
         test.equal(moment.duration("00:00").years(), 0, "0 years");
         test.equal(moment.duration("00:00").days(), 0, "0 days");
@@ -150,7 +150,7 @@ exports.duration = {
         test.done();
     },
 
-     "instantiation from 24-hour time" : function(test) {
+    "instantiation from 24-hour time" : function (test) {
         test.expect(6);
         test.equal(moment.duration("26:45").years(), 0, "0 years");
         test.equal(moment.duration("26:45").days(), 1, "0 days");