From 8567b7050a86346b6fa4d228f41ba58180d57007 Mon Sep 17 00:00:00 2001 From: Josh Nichols Date: Fri, 3 Nov 2023 08:58:31 -0400 Subject: [PATCH] run rubocop --- lib/mini_profiler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mini_profiler.rb b/lib/mini_profiler.rb index a8a650cd..dd99da45 100644 --- a/lib/mini_profiler.rb +++ b/lib/mini_profiler.rb @@ -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 @@ -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( @@ -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