From 0d981773b3ecef4bcacafb8b24d51424ea01001f Mon Sep 17 00:00:00 2001 From: jamesread Date: Fri, 8 Nov 2024 23:54:32 +0000 Subject: [PATCH] fmt: gofmt --- internal/httpservers/restapi_auth_oauth2.go | 12 ++++++------ internal/websocket/websocket.go | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/internal/httpservers/restapi_auth_oauth2.go b/internal/httpservers/restapi_auth_oauth2.go index 50a024b..8b7d89c 100644 --- a/internal/httpservers/restapi_auth_oauth2.go +++ b/internal/httpservers/restapi_auth_oauth2.go @@ -20,10 +20,10 @@ var ( ) type oauth2State struct { - providerConfig *oauth2.Config - providerName string - Username string - Usergroup string + providerConfig *oauth2.Config + providerName string + Username string + Usergroup string } func assignIfEmpty(target *string, value string) { @@ -125,8 +125,8 @@ func handleOAuthLogin(w http.ResponseWriter, r *http.Request) { registeredStates[state] = &oauth2State{ providerConfig: provider, - providerName: providerName, - Username: "", + providerName: providerName, + Username: "", } setOauthCallbackCookie(w, r, "olivetin-sid-oauth", state) diff --git a/internal/websocket/websocket.go b/internal/websocket/websocket.go index acc8ef9..b3a4f0f 100644 --- a/internal/websocket/websocket.go +++ b/internal/websocket/websocket.go @@ -38,7 +38,7 @@ type WebsocketExecutionListener struct{} func (WebsocketExecutionListener) OnExecutionStarted(ile *executor.InternalLogEntry) { broadcast(&pb.EventExecutionStarted{ LogEntry: internalLogEntryToPb(ile), - }); + }) } func OnEntityChanged() { @@ -179,4 +179,3 @@ func internalLogEntryToPb(logEntry *executor.InternalLogEntry) *pb.LogEntry { User: logEntry.Username, } } -