Skip to content

Logic weirdness in summarizers isKind #359

@andreas-kupries

Description

@andreas-kupries

The piece of code at
https://github.com/rancher/wrangler/blob/master/pkg/summary/summarizers.go#L422-L428
is weird.

The return in line 423 preempts the block at 426-428.

I suspect that the return in line 423 is ok, allowing the block 426-428 to be reduced to just line 427.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions