mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 14:03:40 +01:00
linting fixes
This commit is contained in:
parent
7a3ebac8f0
commit
a01598c0b4
@ -65,7 +65,7 @@ export default async function JDRssProxyHandler(req, res) {
|
|||||||
if (status !== 200) {
|
if (status !== 200) {
|
||||||
return res.status(status).json({ error: { message: "HTTP error communicating with WGeasy API", data: Buffer.from(apiData).toString() } });
|
return res.status(status).json({ error: { message: "HTTP error communicating with WGeasy API", data: Buffer.from(apiData).toString() } });
|
||||||
}
|
}
|
||||||
let showCount;
|
let showCount = 0;
|
||||||
showCount = apiData.length;
|
showCount = apiData.length;
|
||||||
|
|
||||||
// Calculate the number of items in the retry cache
|
// Calculate the number of items in the retry cache
|
||||||
@ -73,7 +73,7 @@ export default async function JDRssProxyHandler(req, res) {
|
|||||||
if (status !== 200) {
|
if (status !== 200) {
|
||||||
return res.status(status).json({ error: { message: "HTTP error communicating with WGeasy API", data: Buffer.from(apiData).toString() } });
|
return res.status(status).json({ error: { message: "HTTP error communicating with WGeasy API", data: Buffer.from(apiData).toString() } });
|
||||||
}
|
}
|
||||||
let retryCache;
|
let retryCache = 0;
|
||||||
retryCache = apiData.length;
|
retryCache = apiData.length;
|
||||||
|
|
||||||
// Calculate the number of items in the feed cache
|
// Calculate the number of items in the feed cache
|
||||||
@ -81,17 +81,16 @@ export default async function JDRssProxyHandler(req, res) {
|
|||||||
if (status !== 200) {
|
if (status !== 200) {
|
||||||
return res.status(status).json({ error: { message: "HTTP error communicating with WGeasy API", data: Buffer.from(apiData).toString() } });
|
return res.status(status).json({ error: { message: "HTTP error communicating with WGeasy API", data: Buffer.from(apiData).toString() } });
|
||||||
}
|
}
|
||||||
let feedCache;
|
let feedCache = 0;
|
||||||
feedCache = apiData.length;
|
feedCache = apiData.length;
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
showCount:showCount,
|
showCount,
|
||||||
retryCache:retryCache,
|
retryCache,
|
||||||
feedCache:feedCache
|
feedCache
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return res.status(status).send(data);
|
return res.status(status).send(data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user