fmt: gofmt

This commit is contained in:
jamesread 2024-11-08 23:54:32 +00:00
parent 8d4ddd36cd
commit 0d981773b3
2 changed files with 7 additions and 8 deletions

View File

@ -20,10 +20,10 @@ var (
) )
type oauth2State struct { type oauth2State struct {
providerConfig *oauth2.Config providerConfig *oauth2.Config
providerName string providerName string
Username string Username string
Usergroup string Usergroup string
} }
func assignIfEmpty(target *string, value string) { func assignIfEmpty(target *string, value string) {
@ -125,8 +125,8 @@ func handleOAuthLogin(w http.ResponseWriter, r *http.Request) {
registeredStates[state] = &oauth2State{ registeredStates[state] = &oauth2State{
providerConfig: provider, providerConfig: provider,
providerName: providerName, providerName: providerName,
Username: "", Username: "",
} }
setOauthCallbackCookie(w, r, "olivetin-sid-oauth", state) setOauthCallbackCookie(w, r, "olivetin-sid-oauth", state)

View File

@ -38,7 +38,7 @@ type WebsocketExecutionListener struct{}
func (WebsocketExecutionListener) OnExecutionStarted(ile *executor.InternalLogEntry) { func (WebsocketExecutionListener) OnExecutionStarted(ile *executor.InternalLogEntry) {
broadcast(&pb.EventExecutionStarted{ broadcast(&pb.EventExecutionStarted{
LogEntry: internalLogEntryToPb(ile), LogEntry: internalLogEntryToPb(ile),
}); })
} }
func OnEntityChanged() { func OnEntityChanged() {
@ -179,4 +179,3 @@ func internalLogEntryToPb(logEntry *executor.InternalLogEntry) *pb.LogEntry {
User: logEntry.Username, User: logEntry.Username,
} }
} }