Skip to content

Commit

Permalink
fix: autocorrectable Rubocop resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrandahl committed Dec 9, 2024
1 parent 85ead27 commit 7a882c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/data_services_api/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_json(http_url, params, options)
status: 200,
request_url: "#{http_url}?#{query_string}",
log_type: 'info',
response_status:"received"
response_status: 'received'
)

response = get_from_api(http_url, 'application/json', params, options)
Expand Down Expand Up @@ -233,9 +233,9 @@ def log_message(
# calculate the elapsed time in milliseconds by dividing the difference in time by 1000
elapsed_time = (end_time - start_time) / 1000
# add elapsed time to the message if the api request is completed
if request_status == 'completed'
if request_status == 'completed'
message = "#{request_status.capitalize} Data Services API request, time taken #{format('%.0f ms',
elapsed_time)}"
elapsed_time)}"
else
message ||= "#{request_status.capitalize} Data Services API request"
end
Expand All @@ -246,7 +246,7 @@ def log_message(
message: message,
request_status: request_status,
request_url: request_url,
status: status,
status: status
}

# Log the API responses at the appropriate level requested
Expand Down

0 comments on commit 7a882c3

Please sign in to comment.