Skip to content

Commit

Permalink
Fix Style/RedundantReturn violations
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshenny committed Apr 26, 2024
1 parent 42e2e5d commit a4d9325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/app_profiler/app_profiler_configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ module AppProfiler
class ConfigurationTest < TestCase
test "unexpected handler profile_enqueue_success raises ArgumentError " do
assert_raises(ArgumentError) do
AppProfiler.profile_enqueue_success = ->(_success) { return }
AppProfiler.profile_enqueue_success = ->(_success) { nil }
end
end

test "unexpected handler profile_enqueue_failure raises ArgumentError " do
assert_raises(ArgumentError) do
AppProfiler.profile_enqueue_failure = ->() { return }
AppProfiler.profile_enqueue_failure = ->() { nil }
end
end

test "unexpected handler after_process_queue raises ArgumentError " do
assert_raises(ArgumentError) do
AppProfiler.after_process_queue = lambda { return }
AppProfiler.after_process_queue = lambda { nil }
end
end
end
Expand Down

0 comments on commit a4d9325

Please sign in to comment.