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

chores: Request pipeline readability/DRYing. #2108

Merged
merged 3 commits into from
Dec 18, 2018

Conversation

abernix
Copy link
Member

@abernix abernix commented Dec 18, 2018

These are a few low-hanging fruit commits in a never-ending pursuit to streamline the request pipeline.

These should be effective no-ops, but are more relevant given another PR which I'm in the process of staging. Whether or not that PR lands, I think these should still be drops in the improvements bucket. 🥝📈

This method is so large this was just low-hanging fruit along a path of
potential opportunities.
…idEnd`.

Rather than crutching on the `return`, this logic reads more concisely with
a full `if` / `else` pattern.

I say this because two people looked at it and weren't immediately aware,
which really shouldn't be the case from such a brief piece of code.
…per.

Introduces a helper function to DRY-up the increasingly-repeated pattern of
sending an error response in the event of request errors.
@abernix abernix merged commit 8ad2bdd into master Dec 18, 2018
@abernix abernix deleted the abernix/caching-tweak-prep branch December 18, 2018 08:54
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant