chore: Remove no-op condition in Api::V1::InboxesHelper (#4966)
- `smtp` cannot be nil in this context - `anything&.nil?` will never be truthy, even if `anything` is nil
This commit is contained in:
parent
5d2cdb40f5
commit
4b405dc052
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ module Api::V1::InboxesHelper
|
|||
def check_smtp_connection(channel_data, smtp)
|
||||
smtp.start(channel_data[:smtp_domain], channel_data[:smtp_login], channel_data[:smtp_password],
|
||||
channel_data[:smtp_authentication]&.to_sym || :login)
|
||||
smtp.finish unless smtp&.nil?
|
||||
smtp.finish
|
||||
end
|
||||
|
||||
def set_smtp_encryption(channel_data, smtp)
|
||||
|
|
Loading…
Reference in a new issue