Skip to content

Duplicate strings.Count in path matcher #6233

@hlidotbe

Description

@hlidotbe

Hi,

Unless I'm mistaken there's a redundant count in this check:

if strings.Count(matchPattern, "*") == 2 &&
strings.HasPrefix(matchPattern, "*") &&
strings.HasSuffix(matchPattern, "*") &&
strings.Count(matchPattern, "*") == 2 {

if it's indeed a mistake I'll do a PR ASAP.

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