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

fix: broken sends #15

Merged
merged 2 commits into from
Jun 17, 2024
Merged

fix: broken sends #15

merged 2 commits into from
Jun 17, 2024

Conversation

nshki
Copy link
Owner

@nshki nshki commented Jun 17, 2024

Overview

Follow-up from #10. The methods that return the SMTP host and port were written in a way that would return empty strings for non-custom SMTP configs, which was not right. This corrects that mistake.

@nshki nshki added the bug Something isn't working label Jun 17, 2024
@nshki nshki self-assigned this Jun 17, 2024
@nshki nshki merged commit 4436694 into main Jun 17, 2024
1 check passed
@nshki nshki deleted the fix/broken-sends branch June 17, 2024 04:43
@@ -44,14 +44,14 @@ module SmtpConfig::ProvidersSupportable
#
# @return [String]
def address
host || PROVIDERS.dig(provider.to_sym, :address)
host.present? ? host : PROVIDERS.dig(provider.to_sym, :address)
Copy link

Choose a reason for hiding this comment

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

You could also do host.presence || 😊

Copy link
Owner Author

Choose a reason for hiding this comment

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

Oh wow, TIL! Thanks for taking a look at these already-closed PRs, Kasper. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants