chore: apply linter fixes
This commit is contained in:
committed by
Mateusz Filipowicz
parent
685572d5ce
commit
d79f581c1f
6
unifi/dhcp_option.generated.go
generated
6
unifi/dhcp_option.generated.go
generated
@@ -77,7 +77,7 @@ func (c *Client) getDHCPOption(ctx context.Context, site, id string) (*DHCPOptio
|
||||
}
|
||||
|
||||
if len(respBody.Data) != 1 {
|
||||
return nil, NotFoundError
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
|
||||
d := respBody.Data[0]
|
||||
@@ -104,7 +104,7 @@ func (c *Client) createDHCPOption(ctx context.Context, site string, d *DHCPOptio
|
||||
}
|
||||
|
||||
if len(respBody.Data) != 1 {
|
||||
return nil, NotFoundError
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
|
||||
new := respBody.Data[0]
|
||||
@@ -124,7 +124,7 @@ func (c *Client) updateDHCPOption(ctx context.Context, site string, d *DHCPOptio
|
||||
}
|
||||
|
||||
if len(respBody.Data) != 1 {
|
||||
return nil, NotFoundError
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
|
||||
new := respBody.Data[0]
|
||||
|
||||
Reference in New Issue
Block a user