Skip to content

Commit

Permalink
lxd: Ignore lint error (revive: defer).
Browse files Browse the repository at this point in the history
This is a false positive.

Signed-off-by: Mark Laing <mark.laing@canonical.com>
  • Loading branch information
markylaing committed Feb 12, 2024
1 parent 14d51fd commit 458b87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func waitForOperations(ctx context.Context, cluster *db.Cluster, consoleShutdown
logger.Error("Failed cleaning up operations")
}

return nil
return nil //nolint:revive // False positive: raises "return in a defer function has no effect".
})
}()

Expand Down

0 comments on commit 458b87c

Please sign in to comment.