Skip to content

Commit 1a6bf0d

Browse files
committed
internal: schedcache: fix linter issue
we can and should handle the err return value. Signed-off-by: Francesco Romani <[email protected]>
1 parent 699888f commit 1a6bf0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/schedcache/synced.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ func HasSynced(env *Env, nodeNames []string) (bool, map[string]sets.Set[string],
7878

7979
unsynced := make(map[string]sets.Set[string])
8080

81-
//nolint: ineffassign,staticcheck,wastedassign
8281
podList, err := podlist.With(env.Cli).ByDeployment(env.Ctx, *dp)
82+
if err != nil {
83+
return false, nil, err
84+
}
85+
8386
for idx := range podList {
8487
pod := &podList[idx]
8588

0 commit comments

Comments
 (0)