summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-01-26 08:02:50 +0000
committerGo MAEDA <maeda@farend.jp>2024-01-26 08:02:50 +0000
commitf6db14c7331dbf9a890b6c301da2531567afd0e4 (patch)
treee57424437f19fac593b787b6f0c3e3bdfd12f17e /lib
parent71620e9048203984e807f72f7b1a16828af40e53 (diff)
downloadredmine-f6db14c7331dbf9a890b6c301da2531567afd0e4.tar.gz
redmine-f6db14c7331dbf9a890b6c301da2531567afd0e4.zip
Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22642 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/asset_path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/asset_path.rb b/lib/redmine/asset_path.rb
index ca372713a..d8a65b8ad 100644
--- a/lib/redmine/asset_path.rb
+++ b/lib/redmine/asset_path.rb
@@ -82,13 +82,13 @@ module Redmine
def parent_path?(path, other)
return nil if other == path
- path.ascend.any?{|v| v == other}
+ path.ascend.any?(other)
end
def child_path?(path, other)
return nil if path == other
- other.ascend.any?{|v| v == path}
+ other.ascend.any?(path)
end
def update(transition_map)