Skip to content

Commit c7a7112

Browse files
committed
Rewrite according to rubocop
1 parent 06093dd commit c7a7112

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/line/bot/httpclient.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ def http(uri)
3939
http.use_ssl = true
4040
end
4141

42-
http_options&.each do |key, value|
43-
http.send("#{key}=", value)
42+
if http_options
43+
http_options.each do |key, value|
44+
http.send("#{key}=", value)
45+
end
4446
end
4547

4648
http

0 commit comments

Comments
 (0)