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

Remove redundant HTTP.start block #34

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

balvig
Copy link
Contributor

@balvig balvig commented Oct 3, 2024

Why

It looks like only download_csv_string does any actual downloading:

https://github.com/davidstosik/moneyforward_ynab/blob/3c380e93e68fff559237d757060afae0a30df1f0/lib/mfynab/money_forward.rb?plain=1#L56-L60

Maybe we can omit the HTTP.start block from download_csv?

It looks like only `download_csv_string` does any downloading,
so maybe we can omit the HTTP.start block from `download_csv`?
Copy link
Owner

@davidstosik davidstosik left a comment

Choose a reason for hiding this comment

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

Good catch!
I missed that when I refactored here.

Thank you!

@davidstosik davidstosik merged commit 923af0c into davidstosik:main Oct 7, 2024
2 checks passed
@balvig balvig deleted the jb/remove-http-block branch October 8, 2024 00:12
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