chore(lint): enable nlreturn
This commit is contained in:
parent
b3fd8910d3
commit
7ab9424459
|
@ -38,6 +38,8 @@ linters-settings:
|
|||
wsl:
|
||||
allow-cuddle-declarations: true
|
||||
allow-separated-leading-comment: true
|
||||
nlreturn:
|
||||
block-size: 2
|
||||
linters:
|
||||
enable-all: true
|
||||
disable:
|
||||
|
@ -71,7 +73,6 @@ linters:
|
|||
- maligned
|
||||
- nakedret
|
||||
- nilnil
|
||||
- nlreturn
|
||||
- nosnakecase
|
||||
- paralleltest
|
||||
- testpackage
|
||||
|
|
|
@ -67,6 +67,7 @@ func (gc *GC) deleteEachOf(ctx context.Context, c *client.Client, selector label
|
|||
if err := c.List(ctx, &items, options...); err != nil {
|
||||
if k8serrors.IsForbidden(err) {
|
||||
gc.l.Info("cannot gc, forbidden", "gvk", GVK.String())
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue