[refactor] use let define variables
All checks were successful
/ run-pytest (push) Successful in 1m1s

This commit is contained in:
SouthFox 2024-02-27 00:27:01 +08:00
parent 3994213325
commit d4f49aab4a

View file

@ -7,7 +7,7 @@
[url] [url]
(.info logger url) (.info logger url)
(return (.json (return (.json
(with/a [client (.AsyncClient httpx)] (with/a [client (.AsyncClient httpx)]
(await (.get client url :headers (let [headers {"User-Agent" config.USER_AGENT
{"User-Agent" config.USER_AGENT "Accept" config.AP_CONTENT_TYPE}]
"Accept" config.AP_CONTENT_TYPE})))))) (await (.get client url :headers headers)))))))