Unexport types that no longer need to be exported

This commit is contained in:
2023-10-04 16:28:52 -07:00
parent c40ad29ae1
commit 7e2677c495
6 changed files with 1451 additions and 1451 deletions

View File

@@ -40,7 +40,7 @@ func (c *Client) ClientLogin(ctx context.Context, l Login) error {
if err != nil {
return err
}
c.Token = lr.JWT.ValueOrEmpty()
c.Token = lr.JWT.ValueOrZero()
return nil
}
@@ -131,7 +131,7 @@ func (c *Client) getReq(ctx context.Context, method string, path string, data, r
}
// resError returns an error if the the response contains an error
func resError(res *http.Response, lr LemmyResponse) error {
func resError(res *http.Response, lr lemmyResponse) error {
if lr.Error.IsValid() {
return LemmyError{
Code: res.StatusCode,