From: Lucas Sanders Date: Sun, 30 Oct 2016 18:27:58 +0000 (-0400) Subject: Fix code style X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaad7760863df04d6611d8fa37125611d9b7989e;p=thirdparty%2Fmoment.git Fix code style --- diff --git a/src/lib/moment/prototype.js b/src/lib/moment/prototype.js index 3cab9fc86..4a94345a0 100644 --- a/src/lib/moment/prototype.js +++ b/src/lib/moment/prototype.js @@ -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)); diff --git a/src/lib/utils/wrap.js b/src/lib/utils/wrap.js index 0bbdb3712..d9da670ba 100644 --- a/src/lib/utils/wrap.js +++ b/src/lib/utils/wrap.js @@ -1,5 +1,5 @@ export default function wrap(Type, fn, dontCloneWithNoArgs) { - return function() { + return function () { var m; if (dontCloneWithNoArgs && !arguments.length) { m = this; diff --git a/src/test/moment/getters_setters.js b/src/test/moment/getters_setters.js index f4ed95be9..5f28c6031 100644 --- a/src/test/moment/getters_setters.js +++ b/src/test/moment/getters_setters.js @@ -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'); });