Skip to content

Commit

Permalink
lxd: Fix linter error (staticcheck: SA1032).
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Aug 23, 2024
1 parent 8930027 commit eddd72f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/network_allocations.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func networkAllocationsGet(d *Daemon, r *http.Request) response.Response {
}

leases, err := n.Leases(projectName, clusterRequest.ClientTypeNormal)
if err != nil && !errors.Is(network.ErrNotImplemented, err) {
if err != nil && !errors.Is(err, network.ErrNotImplemented) {
return response.SmartError(fmt.Errorf("Failed getting leases for network %q in project %q: %w", networkName, projectName, err))
}

Expand Down

0 comments on commit eddd72f

Please sign in to comment.