[refactor] use let define variables
All checks were successful
/ run-pytest (push) Successful in 1m26s
All checks were successful
/ run-pytest (push) Successful in 1m26s
This commit is contained in:
parent
3994213325
commit
e6c84f6259
1 changed files with 3 additions and 3 deletions
|
@ -8,6 +8,6 @@
|
||||||
(.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)))))))
|
||||||
|
|
Loading…
Reference in a new issue