style: code lint

This commit is contained in:
手瓜一十雪 committed 2024-07-13 18:12:38 +08:00
1 parent 4beb2491fb
commit 763ee02994
7 files changed
+37 -37

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ export class RequestUtil {
static async HttpsGetCookies(url: string): Promise<{ [key: string]: string }> {
const client = url.startsWith('https') ? https : http;
return new Promise((resolve, reject) => {
let req = client.get(url, (res) => {
const req = client.get(url, (res) => {
let cookies: { [key: string]: string } = {};
const handleRedirect = (res: http.IncomingMessage) => {
//console.log(res.headers.location);
@@ -44,7 +44,7 @@ export class RequestUtil {
});
}
});
req.on('error', (error: any) => {
req.on('error', (error: any) => {
reject(error);
});
});