1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Fix RuboCop offense Style/ReturnNilInPredicateMethodDefinition (#39111).

git-svn-id: https://svn.redmine.org/redmine/trunk@22643 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-01-26 08:19:24 +00:00
parent f6db14c733
commit 14e35236ad

View File

@ -80,13 +80,13 @@ module Redmine
end
def parent_path?(path, other)
return nil if other == path
return false if other == path
path.ascend.any?(other)
end
def child_path?(path, other)
return nil if path == other
return false if path == other
other.ascend.any?(path)
end