From 9e25979e378cfe4ab51472369034848f899789ac Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 18 Mar 2020 16:17:06 -0400 Subject: [PATCH] Run go fmt on modified GitLab files --- database.go | 2 +- oauth.go | 2 +- oauth_gitlab.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/database.go b/database.go index f5e4564..6beea1a 100644 --- a/database.go +++ b/database.go @@ -2512,7 +2512,7 @@ func (db *datastore) GetCollectionLastPostTime(id int64) (*time.Time, error) { func (db *datastore) GenerateOAuthState(ctx context.Context, provider, clientID string) (string, error) { state := store.Generate62RandomString(24) - _, err := db.ExecContext(ctx, "INSERT INTO oauth_client_states (state, provider, client_id, used, created_at) VALUES (?, ?, ?, FALSE, " + db.now() + ")", state, provider, clientID) + _, err := db.ExecContext(ctx, "INSERT INTO oauth_client_states (state, provider, client_id, used, created_at) VALUES (?, ?, ?, FALSE, "+db.now()+")", state, provider, clientID) if err != nil { return "", fmt.Errorf("unable to record oauth client state: %w", err) } diff --git a/oauth.go b/oauth.go index a344bde..0aff0f3 100644 --- a/oauth.go +++ b/oauth.go @@ -179,7 +179,7 @@ func configureGitlabOauth(parentHandler *Handler, r *mux.Router, app *App) { callbackLocation = app.Config().GitlabOauth.CallbackProxy } - address := config.OrDefaultString(app.Config().GitlabOauth.Host, gitlabHost) + address := config.OrDefaultString(app.Config().GitlabOauth.Host, gitlabHost) oauthClient := gitlabOauthClient{ ClientID: app.Config().GitlabOauth.ClientID, ClientSecret: app.Config().GitlabOauth.ClientSecret, diff --git a/oauth_gitlab.go b/oauth_gitlab.go index 8931978..c9c74aa 100644 --- a/oauth_gitlab.go +++ b/oauth_gitlab.go @@ -21,8 +21,8 @@ type gitlabOauthClient struct { var _ oauthClient = gitlabOauthClient{} const ( - gitlabHost = "https://gitlab.com" - gitlabDisplayName = "GitLab" + gitlabHost = "https://gitlab.com" + gitlabDisplayName = "GitLab" ) func (c gitlabOauthClient) GetProvider() string {