From 2c5366603c23d21e2e767780dd224eb5ee01ff27 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 18 Oct 2018 23:29:05 +0800 Subject: [PATCH] chore: fix code indent --- components/calendar/index.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/calendar/index.tsx b/components/calendar/index.tsx index a94941b3ad..7e47cc6d8e 100644 --- a/components/calendar/index.tsx +++ b/components/calendar/index.tsx @@ -177,16 +177,16 @@ export default class Calendar extends React.Component boolean, ) => (current: moment.Moment) => { - if (!current) { - return false; - } - const [ startDate, endDate ] = validRange; - const inRange = !current.isBetween(startDate, endDate, 'days', '[]'); - if (disabledDate) { - return (disabledDate(current) || inRange); - } - return inRange; + if (!current) { + return false; } + const [ startDate, endDate ] = validRange; + const inRange = !current.isBetween(startDate, endDate, 'days', '[]'); + if (disabledDate) { + return (disabledDate(current) || inRange); + } + return inRange; + } renderCalendar = (locale: any, localeCode: string) => { const { state, props } = this;