]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/ReturnNilInPredicateMethodDefinition (#39111).
authorGo MAEDA <maeda@farend.jp>
Fri, 26 Jan 2024 08:19:24 +0000 (08:19 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 26 Jan 2024 08:19:24 +0000 (08:19 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22643 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/asset_path.rb

index d8a65b8adbec8c160d2f14463db32210a14bfe4b..b05a5f6f8b4aab10c376cfc06ef0aef6d87bdfd6 100644 (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