From 448c1ca2d8df467edeb605760bc79b1b63feea1d Mon Sep 17 00:00:00 2001 From: Chris Huynh Date: Mon, 2 Dec 2024 10:40:38 -0600 Subject: [PATCH] cleanup, add rubocop disable --- app/components/bots/table_component.rb | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/app/components/bots/table_component.rb b/app/components/bots/table_component.rb index 2b517fe40b..b477c2764c 100644 --- a/app/components/bots/table_component.rb +++ b/app/components/bots/table_component.rb @@ -7,6 +7,7 @@ module Bots class TableComponent < Component include Ransack::Helpers::FormHelper + # rubocop: disable Metrics/ParameterLists def initialize( bot_accounts, namespace, @@ -22,6 +23,7 @@ def initialize( @empty = empty @system_arguments = system_arguments end + # rubocop: enable Metrics/ParameterLists private @@ -48,21 +50,5 @@ def destroy_path(bot) namespace_project_bot_path(id: bot.id) end end - - def revoke_path(token) - if @namespace.is_a?(Group) - revoke_group_bot_personal_access_token_path( - bot_id: @bot_account.id, - id: token.id - ) - elsif @namespace.is_a?(Namespaces::ProjectNamespace) - revoke_namespace_project_bot_personal_access_token_path( - bot_id: @bot_account.id, - id: token.id - ) - else - revoke_profile_personal_access_token_path(id: token.id) - end - end end end