fixed codeclimate errors (partically)

This commit is contained in:
dinsmol 2021-09-09 09:19:09 +03:00
parent 3f41ce4ab4
commit f4e0084895
103 changed files with 339 additions and 367 deletions

View file

@ -26,7 +26,7 @@ namespace :contacts do
end
def log(msg)
@log ||= Logger.new(STDOUT)
@log ||= Logger.new($stdout)
@log.info(msg)
end
end

View file

@ -26,7 +26,7 @@ namespace :dev do
http.ca_file = ENV['lhv_ca_file']
http.start do
response = http.post(api_base_uri.path + '/payment', request_body, request_headers)
response = http.post("#{api_base_uri.path}/payment", request_body, request_headers)
if response.is_a?(Net::HTTPSuccess)
puts 'Success'

View file

@ -10,4 +10,4 @@ namespace :invoices do
puts "Cancelled total: #{cancelled_invoice_count}"
end
end
end

View file

@ -41,7 +41,7 @@ namespace :invoices do
end
def log(msg)
@log ||= Logger.new(STDOUT)
@log ||= Logger.new($stdout)
@log.info(msg)
end