[refactor] use let define variables
All checks were successful
/ run-pytest (push) Successful in 1m1s
All checks were successful
/ run-pytest (push) Successful in 1m1s
This commit is contained in:
parent
3994213325
commit
d4f49aab4a
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
[url]
|
||||
(.info logger url)
|
||||
(return (.json
|
||||
(with/a [client (.AsyncClient httpx)]
|
||||
(await (.get client url :headers
|
||||
{"User-Agent" config.USER_AGENT
|
||||
"Accept" config.AP_CONTENT_TYPE}))))))
|
||||
(with/a [client (.AsyncClient httpx)]
|
||||
(let [headers {"User-Agent" config.USER_AGENT
|
||||
"Accept" config.AP_CONTENT_TYPE}]
|
||||
(await (.get client url :headers headers)))))))
|
||||
|
|
Loading…
Reference in a new issue