Skip to content

Commit 345e830

Browse files
lucas-aragnoLucas Aragno
and
Lucas Aragno
authored
fix(ruby): remove integer empty check (#4698)
Co-authored-by: Lucas Aragno <[email protected]>
1 parent 9a92af2 commit 345e830

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/ruby/api.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ module {{moduleName}}
5858
end
5959

6060
def self.create_with_config(config)
61-
if config.connect_timeout.nil? ||config.connect_timeout.empty?
61+
if config.connect_timeout.nil?
6262
config.connect_timeout = {{x-timeouts.server.connect}}
6363
end
6464

65-
if config.read_timeout.nil? || config.read_timeout.empty?
65+
if config.read_timeout.nil?
6666
config.read_timeout = {{x-timeouts.server.read}}
6767
end
6868

69-
if config.write_timeout.nil? || config.write_timeout.empty?
69+
if config.write_timeout.nil?
7070
config.write_timeout = {{x-timeouts.server.write}}
7171
end
7272

0 commit comments

Comments
 (0)