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

Refactor: Extract repeated calls to a shared map #973

Merged
merged 3 commits into from Apr 14, 2019

Conversation

olleolleolle
Copy link
Member

@olleolleolle olleolleolle commented Apr 14, 2019

Description

Follows up #972 by extracting some code, to make it pass CodeClimate checks.

Update: It fixed the issue it came to fix.

@olleolleolle olleolleolle changed the title Extract repeated calls to a shared map Refactor: Extract repeated calls to a shared map Apr 14, 2019
{
headers: { 'X-Faraday-Adapter' => adapter },
ssl: {
min_version: '1.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO it's nice that tests can serve as documentation, a value like :TLS1_2 (which is mapped to OpenSSL::SSL::TLS1_2_VERSION) would be a real-life example that can be used here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for chiming in! Alright, let's use a realistic value here, it wont hurt readability, or fool anyone.

Copy link
Member

@iMacTia iMacTia left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍
Not sure why CodeClimate is complaining here but definitely not a showstopper for me

@olleolleolle olleolleolle force-pushed the codeclimate-for-nethttppersistent branch from 14cb0aa to 29ed488 Compare April 14, 2019 18:39
@olleolleolle olleolleolle merged commit be09719 into master Apr 14, 2019
@olleolleolle olleolleolle deleted the codeclimate-for-nethttppersistent branch April 14, 2019 18:51
@technoweenie technoweenie mentioned this pull request Jun 25, 2019
3 tasks
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.

None yet

3 participants