From e8ae24c4cec151218d7d66fb061b8cbf680d454f Mon Sep 17 00:00:00 2001 From: "jorg.vr" Date: Mon, 25 Nov 2024 14:49:04 +0100 Subject: [PATCH] Fix linting --- app/models/repository.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index 93e6d5212e..2c73a47fad 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -162,9 +162,9 @@ def process_activities .map { |d, c| [d, Activity.find_by(repository_token: c['internals']['token'], repository_id: id)] } # rubocop:disable Style/CollectionCompact # This is a false positive for Hash#compact, where this is Array#compact - .reject { |_, e| e.nil? } + .reject { |_, a| a.nil? } # rubocop:enable Style/CollectionCompact - .group_by { |_, e| e } + .group_by { |_, a| a } .transform_values { |l| l.pluck(0) } handled_directories = [] handled_activity_ids = []