Browse Source

Clean up code warnings

master
Gregory Rudolph 3 years ago
parent
commit
01f5ae64ea
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 12
      auth.go
  2. 10
      commands.go
  3. 3
      main.go
  4. 38
      site-api.go
  5. 6
      types.go

12
auth.go

@ -17,14 +17,14 @@ func reqPass(w http.ResponseWriter, r *http.Request) { @@ -17,14 +17,14 @@ func reqPass(w http.ResponseWriter, r *http.Request) {
username := r.URL.Query()["UserName"][0]
log.LogInfo("reqPass username is %+v.", username)
var userID string
if &dg == nil {
if dg == nil {
log.LogError("Discord session was nill.")
}
g, err := dg.GuildMembers(config.GuildID, "", 1000)
log.LogInfo("reqPass guild is %+v.", config.GuildID