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

Various simplification of the code #6

Merged
merged 5 commits into from
Mar 28, 2024
Merged

Conversation

avoidik
Copy link
Owner

@avoidik avoidik commented Mar 28, 2024

Simplify the main code. It is still functionally identical, just with a bit less tokens and special cases.
It is just easier to read with less special cases, ifs, ors, ands, and updates.

Use more idiomatic and shorter constructs.
Missed in previous commit
This includes making default of resource_endpoint be empty string. It can't be None.
No need for temporary dicts.

req in transport_query must be done after url manipulations!
@avoidik avoidik merged commit 0954f65 into avoidik:master Mar 28, 2024
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