Explorar o código

Fix return type...

Seth Moore %!s(int64=9) %!d(string=hai) anos
pai
achega
e755370170
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {