Procházet zdrojové kódy

Fixed bug in restapi.go where UserUpdate data struct was not declared correctly.

Bruce Marriner před 9 roky
rodič
revize
ebbe3e3828
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      restapi.go

+ 1 - 1
restapi.go

@@ -146,7 +146,7 @@ func (s *Session) UserUpdate(userID, email, password, username, avatar, newPassw
 	// to set a new avatar.
 	// If left blank, avatar will be set to null/blank
 
-	data = struct {
+	data := struct {
 		Email       string     `json:"email"`
 		Password    string     `json:"password"`
 		Username    string     `json:"username"`