From dddb73234fd05bdd005d69cef8b1821824afbc46 Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Tue, 4 Oct 2022 10:15:34 -0700 Subject: [PATCH] Remove unused instance variable in ActionList --- .changeset/mighty-rules-look.md | 5 +++++ app/components/primer/alpha/action_list.rb | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changeset/mighty-rules-look.md diff --git a/.changeset/mighty-rules-look.md b/.changeset/mighty-rules-look.md new file mode 100644 index 0000000000..0f54972c85 --- /dev/null +++ b/.changeset/mighty-rules-look.md @@ -0,0 +1,5 @@ +--- +'@primer/view-components': patch +--- + +Remove unused instance variable in ActionList diff --git a/app/components/primer/alpha/action_list.rb b/app/components/primer/alpha/action_list.rb index cc652763e1..48d28fbb87 100644 --- a/app/components/primer/alpha/action_list.rb +++ b/app/components/primer/alpha/action_list.rb @@ -79,8 +79,6 @@ def initialize( # @private def before_render - return if @sub_group - if heading.present? @system_arguments[:"aria-labelledby"] = @id elsif aria(:label, @system_arguments).blank?