Sfoglia il codice sorgente

Fix return type...

Seth Moore 9 anni fa
parent
commit
e755370170
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {