Skip to content

why not change the type map[string]bool to map[string]struct{} in importgraph.go file #6224

@danish-mehmood

Description

@danish-mehmood

i would like to propose a tiny code improvement, where we can change the map[string]bool type inside importgraph.go file to map[string]struct{} type and treat the nodes field of the importGraph struct just like a set.
caddy

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