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