Explorar el Código

Fix return type...

Seth Moore hace 9 años
padre
commit
e755370170
Se han modificado 1 ficheros con 1 adiciones y 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 {