Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
style: res → nil
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Nov 30, 2020
1 parent 39c1054 commit a866b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ func (c *Client) LsBatchSync(ctx context.Context, opts ...LsOption) ([]PinStatus
settings := new(lsSettings)
for _, o := range opts {
if err := o(settings); err != nil {
return res, 0, err
return nil, 0, err
}
}

pinRes, err := c.lsInternal(ctx, settings)
if err != nil {
return res, 0, err
return nil, 0, err
}

results := pinRes.GetResults()
Expand Down

0 comments on commit a866b68

Please sign in to comment.