diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-03-02 21:26:53 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-03-02 21:26:53 +0900 |
commit | b1a9cee83082d6c7a58d87d06055c86fcdbc7644 (patch) | |
tree | 2773fb2a36601569af1494d91e4ad7b3b6fc5113 /activesupport | |
parent | 4b42c7e52aa23081ce02ffad53c76ab786214e87 (diff) | |
download | rails-b1a9cee83082d6c7a58d87d06055c86fcdbc7644.tar.gz rails-b1a9cee83082d6c7a58d87d06055c86fcdbc7644.tar.bz2 rails-b1a9cee83082d6c7a58d87d06055c86fcdbc7644.zip |
Remove unnecessary `respond_to?(:report_on_exception)` checking
Since Rails 6 requires Ruby 2.4.1+.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/cache/behaviors/connection_pool_behavior.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/cache/behaviors/connection_pool_behavior.rb b/activesupport/test/cache/behaviors/connection_pool_behavior.rb index a0dcc8199c..701cd75595 100644 --- a/activesupport/test/cache/behaviors/connection_pool_behavior.rb +++ b/activesupport/test/cache/behaviors/connection_pool_behavior.rb @@ -2,7 +2,7 @@ module ConnectionPoolBehavior def test_connection_pool - Thread.report_on_exception, original_report_on_exception = false, Thread.report_on_exception if Thread.respond_to?(:report_on_exception) + Thread.report_on_exception, original_report_on_exception = false, Thread.report_on_exception emulating_latency do begin @@ -27,7 +27,7 @@ module ConnectionPoolBehavior end end ensure - Thread.report_on_exception = original_report_on_exception if Thread.respond_to?(:report_on_exception) + Thread.report_on_exception = original_report_on_exception end def test_no_connection_pool |