Skip to content

Commit

Permalink
Update usage of a constant to return a new copy rather than the const…
Browse files Browse the repository at this point in the history
…ant value
  • Loading branch information
jaggederest committed May 19, 2011
1 parent d93908f commit fb385f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/new_relic/agent/beacon_configuration.rb
Expand Up @@ -40,8 +40,7 @@ def build_browser_timing_header
return "" if !@rum_enabled
return "" if @browser_monitoring_key.nil?

# TODO: Justin - can you review this? Given that this is a constant string is this work necessary?
value = JS_HEADER
value = JS_HEADER.dup
if value.respond_to?(:html_safe)
value.html_safe
else
Expand Down

0 comments on commit fb385f6

Please sign in to comment.