mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
eslint: Enable prefer-arrow-callback.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
960174408f
commit
a79322bc94
@@ -109,7 +109,7 @@ function get_messages_success(data, opts) {
|
||||
if (!data) {
|
||||
// The server occasionally returns no data during a
|
||||
// restart. Ignore those responses and try again
|
||||
setTimeout(function () {
|
||||
setTimeout(() => {
|
||||
exports.load_messages(opts);
|
||||
}, 0);
|
||||
return;
|
||||
@@ -239,7 +239,7 @@ exports.load_messages = function (opts) {
|
||||
|
||||
// We might want to be more clever here
|
||||
$('#connection-error').addClass("show");
|
||||
setTimeout(function () {
|
||||
setTimeout(() => {
|
||||
exports.load_messages(opts);
|
||||
}, consts.error_retry_time);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user