mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
eslint: change space-before-function-paren from warning to error.
Also fix violations.
This commit is contained in:
@@ -8,7 +8,7 @@ var set_to_start_of_day = function (time) {
|
||||
return time.setMilliseconds(0).setSeconds(0).setMinutes(0).setHours(0);
|
||||
};
|
||||
|
||||
function now () { return new XDate(); }
|
||||
function now() { return new XDate(); }
|
||||
|
||||
// Given an XDate object 'time', return a two-element list containing
|
||||
// - a string for the current human-formatted version
|
||||
@@ -56,7 +56,7 @@ $(function () {
|
||||
|
||||
// time_above is an optional argument, to support dates that look like:
|
||||
// --- ▲ Yesterday ▲ ------ ▼ Today ▼ ---
|
||||
function maybe_add_update_list_entry (needs_update, id, time, time_above) {
|
||||
function maybe_add_update_list_entry(needs_update, id, time, time_above) {
|
||||
if (needs_update) {
|
||||
if (time_above !== undefined) {
|
||||
update_list.push([id, time, time_above]);
|
||||
|
||||
Reference in New Issue
Block a user