You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
fix lint
This commit is contained in:
@@ -271,10 +271,10 @@ MatrixHttpApi.prototype = {
|
|||||||
xhr.timeout_timer = callbacks.setTimeout(timeout_fn, 30000);
|
xhr.timeout_timer = callbacks.setTimeout(timeout_fn, 30000);
|
||||||
|
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
|
let resp;
|
||||||
switch (xhr.readyState) {
|
switch (xhr.readyState) {
|
||||||
case global.XMLHttpRequest.DONE:
|
case global.XMLHttpRequest.DONE:
|
||||||
callbacks.clearTimeout(xhr.timeout_timer);
|
callbacks.clearTimeout(xhr.timeout_timer);
|
||||||
let resp;
|
|
||||||
try {
|
try {
|
||||||
if (xhr.status === 0) {
|
if (xhr.status === 0) {
|
||||||
throw new AbortError();
|
throw new AbortError();
|
||||||
|
|||||||
Reference in New Issue
Block a user