Explorar o código

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

Bruce Marriner %!s(int64=9) %!d(string=hai) anos
pai
achega
ebbe3e3828
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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"`