]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix code style
authorLucas Sanders <butterflyhug@google.com>
Sun, 30 Oct 2016 18:27:58 +0000 (14:27 -0400)
committerLucas Sanders <butterflyhug@google.com>
Wed, 22 Mar 2017 11:00:19 +0000 (07:00 -0400)
src/lib/moment/prototype.js
src/lib/utils/wrap.js
src/test/moment/getters_setters.js

index 3cab9fc86ba1824541def6f85050419f15418812..4a94345a08dd775ea4f7fba8bf6af276ba145ba1 100644 (file)
@@ -139,7 +139,9 @@ proto.zoneName = getZoneName;
 import { deprecate } from '../utils/deprecate';
 proto.clone = deprecate(
     'clone does nothing in Moment v3.x because the API is now immutable. Use moment(instance) to make a copy.',
-    function clone() { return this; });
+    function clone() {
+        return this;
+    });
 proto.dates = deprecate(
     'dates accessor is deprecated. Use date instead.',
     wrap(Moment, getSetDayOfMonth, true));
index 0bbdb3712e501af9be9c9f6a20be99b913b40a74..d9da670ba62d52dfe508a1a70431eaa9c915f62a 100644 (file)
@@ -1,5 +1,5 @@
 export default function wrap(Type, fn, dontCloneWithNoArgs) {
-    return function() {
+    return function () {
         var m;
         if (dontCloneWithNoArgs && !arguments.length) {
             m = this;
index f4ed95be955a2bfc2a92e885cc15f3887c18d1ed..5f28c60310b4e400c9e637dbe96ea69d62b428f4 100644 (file)
@@ -195,9 +195,9 @@ test('setter with multiple unit values', function (assert) {
     assert.equal(a.milliseconds(), 9, 'milliseconds');
 
     var c = moment([2016,0,1]);
-       c = c.set({weekYear: 2016});
+    c = c.set({weekYear: 2016});
     assert.equal(c.weekYear(), 2016, 'week year correctly sets with object syntax');
-       c = c.set({quarter: 3});
+    c = c.set({quarter: 3});
     assert.equal(c.quarter(), 3, 'quarter sets correctly with object syntax');
 });