From f6db14c7331dbf9a890b6c301da2531567afd0e4 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 26 Jan 2024 08:02:50 +0000 Subject: [PATCH] Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#39111). git-svn-id: https://svn.redmine.org/redmine/trunk@22642 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 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)