8000 fs: Simplify maybe_redirect_or_append_path by jplatte · Pull Request #440 · tower-rs/tower-http · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fs: Simplify maybe_redirect_or_append_path #440

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

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

jplatte
Copy link
Member
@jplatte jplatte commented Nov 22, 2023

Follow-up to #421. Would be nice if we could do a small patch release once this is in.

Motivation

Makes the code easier to understand.

Solution

Some early returns, change order of checks to remove redundant return values.

@jplatte jplatte requested a review from davidpdrsn November 22, 2023 13:31
@jplatte jplatte requested a review from Nehliin February 9, 2024 20:35
@jplatte jplatte merged commit d205b1a into main Feb 19, 2024
@jplatte jplatte deleted the jplatte/421-followup branch February 19, 2024 12:45
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
0