Fix all linter issues on backend code.

This commit is contained in:
Andrey Antukh 2020-12-02 12:36:08 +01:00 committed by Hirunatan
parent 6881e3d795
commit 44a21de783
43 changed files with 219 additions and 304 deletions

View file

@ -11,7 +11,6 @@
(:require
[app.common.exceptions :as ex]
[app.config :as cfg]
[app.db :as db]
[app.http.session :as session]
[app.services.mutations :as sm]
[app.services.tokens :as tokens]
@ -21,7 +20,6 @@
[clojure.tools.logging :as log]
[lambdaisland.uri :as uri]))
(def default-base-gitlab-uri "https://gitlab.com")
(def scope "read_user")
@ -100,7 +98,7 @@
nil))))
(defn auth
[req]
[_req]
(let [token (tokens/generate
{:iss :gitlab-oauth
:exp (dt/in-future "15m")})
@ -119,7 +117,7 @@
(defn callback
[req]
(let [token (get-in req [:params :state])
tdata (tokens/verify token {:iss :gitlab-oauth})
_ (tokens/verify token {:iss :gitlab-oauth})
info (some-> (get-in req [:params :code])
(get-access-token)
(get-user-info))]