fix linter issues

This commit is contained in:
pascal
2026-02-12 01:15:36 +01:00
parent e20b969188
commit 963e3f5457
5 changed files with 14 additions and 8 deletions

View File

@@ -151,7 +151,7 @@ func (c *LeaseClient) Get(ctx context.Context, name string) (*Lease, error) {
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode == http.StatusNotFound {
return nil, nil
return nil, nil //nolint:nilnil
}
if resp.StatusCode != http.StatusOK {
return nil, c.readError(resp)