mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user