From 14e35236ad116c5e8215c3c2e4533fd90f8e51e1 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 26 Jan 2024 08:19:24 +0000 Subject: [PATCH] Fix RuboCop offense Style/ReturnNilInPredicateMethodDefinition (#39111). git-svn-id: https://svn.redmine.org/redmine/trunk@22643 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/asset_path.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/asset_path.rb b/lib/redmine/asset_path.rb index d8a65b8ad..b05a5f6f8 100644 --- a/lib/redmine/asset_path.rb +++ b/lib/redmine/asset_path.rb @@ -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