Browse Source

Fix return type...

Seth Moore 9 năm trước cách đây
mục cha
commit
e755370170
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {