소스 검색

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

Bruce Marriner 9 년 전
부모
커밋
ebbe3e3828
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"`