Explorar el Código

Remove the userID param from UserSettings.

Chris Rhodes hace 9 años
padre
commit
b26c168d94
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      restapi.go

+ 1 - 1
restapi.go

@@ -227,7 +227,7 @@ func (s *Session) UserUpdate(email, password, username, avatar, newPassword stri
 }
 
 // UserSettings returns the settings for a given user
-func (s *Session) UserSettings(userID string) (st *Settings, err error) {
+func (s *Session) UserSettings() (st *Settings, err error) {
 
 	body, err := s.Request("GET", USER_SETTINGS("@me"), nil)
 	err = json.Unmarshal(body, &st)