1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:55:56 +00:00

silence (or fix) a bunch of eslint warnings

This commit is contained in:
Andrew Dolgov
2021-02-12 19:02:09 +03:00
parent ad7842c98a
commit 7f0800537e
14 changed files with 65 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
'use strict';
/* global dijit, __, App, Ajax */
/* eslint-disable no-new */
/* error reporting shim */
// TODO: deprecated; remove
@@ -31,8 +32,8 @@ function xhrPost(url, params, complete) {
/* exported xhrJson */
function xhrJson(url, params, complete) {
return new Promise((resolve, reject) => {
return xhrPost(url, params).then((reply) => {
return new Promise((resolve, reject) =>
xhrPost(url, params).then((reply) => {
let obj = null;
try {
@@ -44,8 +45,7 @@ function xhrJson(url, params, complete) {
if (complete != undefined) complete(obj);
resolve(obj);
});
});
}));
}
/* add method to remove element from array */