Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

param empty , avoid out of range #204

Closed
wants to merge 1 commit into from
Closed

param empty , avoid out of range #204

wants to merge 1 commit into from

Conversation

1046102779
Copy link
Contributor

No description provided.

panic("path must begin with '/' in path '" + path + "'")
}
} else {
panic("path can't be empty string")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"path must not be empty"? or just combine it into if len(path) < 1 || path[0] != '/' {

@julienschmidt julienschmidt added this to the v1.3 milestone Sep 16, 2019
julienschmidt added a commit that referenced this pull request Sep 25, 2019
Co-authored-by: Julien Schmidt <git@julienschmidt.com>
@julienschmidt
Copy link
Owner

Merged in 4fa1cc7.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants