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

openapi3,routers: simplify code #800

Merged
merged 1 commit into from
Jun 16, 2023
Merged

openapi3,routers: simplify code #800

merged 1 commit into from
Jun 16, 2023

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Jun 16, 2023

This PR simplifies code by:

  • use !ok instead of ok == false;
  • use strings.TrimSuffix instead of strings.HasPrefix with a condition;
  • remove unnecessary fmt.Sprintf.

@alexandear alexandear changed the title openapi3,openapi3filter,routers: simplify code openapi3,routers: simplify code Jun 16, 2023
@fenollp fenollp merged commit 9128b1e into getkin:master Jun 16, 2023
10 checks passed
@alexandear alexandear deleted the openapi3-simplify-code branch June 17, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants