Skip to content

Commit

Permalink
run rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Nov 3, 2023
1 parent aaaf2c7 commit 8567b70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mini_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def trace_exceptions?

# FIXME this should use profile_parameter and be the same as flamegraph?
def pp_flamegraph?
@query_string.match?(/pp=(async-)?flamegraph/ )
@query_string.match?(/pp=(async-)?flamegraph/)
end

def flamegraph_sample_rate
Expand Down Expand Up @@ -455,7 +455,7 @@ def call(env)
if defined?(StackProf) && StackProf.respond_to?(:run)
# do not sully our profile with mini profiler timings
current.measure = false
sample_rate = query_settings.flamegraph_sample_rate || config.flamegraph_sample_rate
sample_rate = query_settings.flamegraph_sample_rate || config.flamegraph_sample_rate
mode = query_settings.flamegraph_mode || config.flamegraph_mode

flamegraph = StackProf.run(
Expand Down Expand Up @@ -538,7 +538,7 @@ def call(env)
page_struct[:user] = user(env)
page_struct[:root].record_time((Process.clock_gettime(Process::CLOCK_MONOTONIC) - start) * 1000)

if flamegraph && query_settings.flamegraph?
if flamegraph && query_settings.flamegraph?
body.close if body.respond_to? :close
return client_settings.handle_cookie(self.flamegraph(flamegraph, path, env))
elsif flamegraph # async-flamegraph
Expand Down

0 comments on commit 8567b70

Please sign in to comment.