lib/convert_api/task.rb in convert_api-1.2.1 vs lib/convert_api/task.rb in convert_api-1.3.0
- old
+ new
@@ -12,17 +12,17 @@
Timeout: @conversion_timeout,
StoreFile: true,
)
from_format = @from_format || detect_format(params)
- read_timeout = @conversion_timeout + config.conversion_timeout_delta
+ read_timeout = @conversion_timeout + config.conversion_timeout_delta if @conversion_timeout
converter = params[:converter] ? "/converter/#{params[:converter]}" : ''
response = ConvertApi.client.post(
"convert/#{from_format}/to/#{@to_format}#{converter}",
params,
- read_timeout: read_timeout
+ read_timeout: read_timeout,
)
Result.new(response)
end
@@ -71,6 +71,6 @@
def config
ConvertApi.config
end
end
-end
\ No newline at end of file
+end