mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22642 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
71620e9048
commit
f6db14c733
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user