Skip to content

Commit

Permalink
new_relic_service: don't waste a variable
Browse files Browse the repository at this point in the history
given the short/simple evaluation involved, perform logic inline as
opposed to stored its result in a variable and referencing the variable
  • Loading branch information
fallwith committed Dec 1, 2023
1 parent 389ccd6 commit 681ccc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/new_relic/agent/new_relic_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,7 @@ def prep_collector(method)

def invoke_remote_send_request(method, payload, data, encoding)
uri = remote_method_uri(method)
full_uri = "#{@collector}#{filtered_uri(uri)}"

@audit_logger.log_request(full_uri, payload, @marshaller)
@audit_logger.log_request("#{@collector}#{filtered_uri(uri)}", payload, @marshaller)
request_send_ts = Process.clock_gettime(Process::CLOCK_MONOTONIC)
response = send_request(:data => data,
:uri => uri,
Expand Down

0 comments on commit 681ccc5

Please sign in to comment.