Skip to content

Commit

Permalink
Run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Jul 28, 2024
1 parent ed8122c commit 9b771cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/account/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var (
isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString
semaphore = make(chan bool, ArgonMaxInstances)

GameURL string
GameURL string
OAuthCallbackURL string
)

Expand Down
4 changes: 2 additions & 2 deletions api/account/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
)

var (
DiscordClientID string
DiscordClientID string
DiscordClientSecret string
DiscordCallbackURL string
DiscordCallbackURL string
)

func HandleDiscordCallback(w http.ResponseWriter, r *http.Request) (string, error) {
Expand Down
4 changes: 2 additions & 2 deletions api/account/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
)

var (
GoogleClientID string
GoogleClientID string
GoogleClientSecret string
GoogleCallbackURL string
GoogleCallbackURL string
)

func HandleGoogleCallback(w http.ResponseWriter, r *http.Request) (string, error) {
Expand Down
4 changes: 2 additions & 2 deletions rogueserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ func main() {

account.DiscordClientID = *discordclientid
account.DiscordClientSecret = *discordsecretid
account.DiscordCallbackURL = *callbackurl+"/auth/discord/callback"
account.DiscordCallbackURL = *callbackurl + "/auth/discord/callback"

account.GoogleClientID = *googleclientid
account.GoogleClientSecret = *googlesecretid
account.GoogleCallbackURL = *callbackurl+"/auth/google/callback"
account.GoogleCallbackURL = *callbackurl + "/auth/google/callback"

// register gob types
gob.Register([]interface{}{})
Expand Down

0 comments on commit 9b771cb

Please sign in to comment.