From 92579cf4630c609d3bf5e500640258198e76d653 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 26 May 2017 13:36:58 +0100 Subject: [PATCH] Array literal --- src/components/views/messages/DateSeparator.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/views/messages/DateSeparator.js b/src/components/views/messages/DateSeparator.js index d1d588ce2..7acc9bd61 100644 --- a/src/components/views/messages/DateSeparator.js +++ b/src/components/views/messages/DateSeparator.js @@ -19,15 +19,15 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler'; import DateUtils from 'matrix-react-sdk/lib/DateUtils'; function getdaysArray() { - var days = []; - days.push(_t('Sunday')); - days.push(_t('Monday')); - days.push(_t('Tuesday')); - days.push(_t('Wednesday')); - days.push(_t('Thursday')); - days.push(_t('Friday')); - days.push(_t('Saturday')); - return days; + return [ + _t('Sunday'), + _t('Monday'), + _t('Tuesday'), + _t('Wednesday'), + _t('Thursday'), + _t('Friday'), + _t('Saturday'), + ]; } module.exports = React.createClass({