Skip to content

net/http: extra space in panic message #21102

Closed
@kanata2

Description

@kanata2

In net/http/server.go,

if pattern == "" {
    panic("http: invalid pattern " + pattern)
}

I think the last space of "http: invalid pattern " and + pattern are unnecessary because pattern is an empty string, so please review this 🙏
I'll send a change request if there is no problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions