Skip to content

Commit 92579cf

Browse files
committed
Array literal
1 parent d688ead commit 92579cf

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎src/components/views/messages/DateSeparator.js‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler';
1919
import DateUtils from 'matrix-react-sdk/lib/DateUtils';
2020

2121
function getdaysArray() {
22-
var days = [];
23-
days.push(_t('Sunday'));
24-
days.push(_t('Monday'));
25-
days.push(_t('Tuesday'));
26-
days.push(_t('Wednesday'));
27-
days.push(_t('Thursday'));
28-
days.push(_t('Friday'));
29-
days.push(_t('Saturday'));
30-
return days;
22+
return [
23+
_t('Sunday'),
24+
_t('Monday'),
25+
_t('Tuesday'),
26+
_t('Wednesday'),
27+
_t('Thursday'),
28+
_t('Friday'),
29+
_t('Saturday'),
30+
];
3131
}
3232

3333
module.exports = React.createClass({

0 commit comments

Comments
 (0)