mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 21:32:08 +08:00
fix: lint
This commit is contained in:
parent
a82f930297
commit
aded3f3ea5
@ -127,7 +127,7 @@ const createRequest = (method, url, data, options) => {
|
|||||||
settings.httpAgent = new PacProxyAgent(options.proxy)
|
settings.httpAgent = new PacProxyAgent(options.proxy)
|
||||||
settings.httpsAgent = new PacProxyAgent(options.proxy)
|
settings.httpsAgent = new PacProxyAgent(options.proxy)
|
||||||
} else {
|
} else {
|
||||||
var purl = qs.parse(options.proxy)
|
const purl = qs.parse(options.proxy)
|
||||||
if (purl.hostname) {
|
if (purl.hostname) {
|
||||||
const agent = tunnel.httpsOverHttp({
|
const agent = tunnel.httpsOverHttp({
|
||||||
proxy: {
|
proxy: {
|
||||||
@ -184,7 +184,7 @@ const createRequest = (method, url, data, options) => {
|
|||||||
|
|
||||||
answer.status =
|
answer.status =
|
||||||
100 < answer.status && answer.status < 600 ? answer.status : 400
|
100 < answer.status && answer.status < 600 ? answer.status : 400
|
||||||
if (answer.status == 200) resolve(answer)
|
if (answer.status === 200) resolve(answer)
|
||||||
else reject(answer)
|
else reject(answer)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user