Ver código fonte

Fix return type...

Seth Moore 9 anos atrás
pai
commit
e755370170
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      restapi.go

+ 1 - 1
restapi.go

@@ -109,7 +109,7 @@ func (s *Session) Login(email string, password string) (token string, err error)
 
 	response, err := s.Request("POST", LOGIN, data)
 	if err != nil {
-		return response, err
+		return "", err
 	}
 
 	temp := struct {