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 {
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)

View File

@ -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,
}
}