Skip to content

Commit

Permalink
remove redundant do inside when
Browse files Browse the repository at this point in the history
  • Loading branch information
jimpil committed Aug 6, 2023
1 parent 56f7ba4 commit 9c1ce2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/clojure/langohr/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,8 @@
(when sasl-config
(.setSaslConfig cf sasl-config))
(when ssl-context
(do
(.useSslProtocol cf ^javax.net.ssl.SSLContext ssl-context)
(.setPort cf final-port)))
(.useSslProtocol cf ^javax.net.ssl.SSLContext ssl-context)
(.setPort cf final-port))
(when verify-hostname
(.enableHostnameVerification cf))
(when thread-factory
Expand Down

0 comments on commit 9c1ce2f

Please sign in to comment.