From 1936adc82fe84d77bda349fdde3e8fde23d73178 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Thu, 14 Dec 2023 01:56:30 +0500 Subject: [PATCH] 11068: fix lint issues --- app/components/confirm_modal_component.rb | 7 ++++--- app/reflexes/products_reflex.rb | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/components/confirm_modal_component.rb b/app/components/confirm_modal_component.rb index 2aafd0bb37..e519a6c227 100644 --- a/app/components/confirm_modal_component.rb +++ b/app/components/confirm_modal_component.rb @@ -1,7 +1,8 @@ # frozen_string_literal: true class ConfirmModalComponent < ModalComponent - # @param controller_data_values [Array(Hash)] format: {: value1, : value2} + # @param controller_data_values [Array(Hash)] + # format: {: value1, : value2} def initialize( id:, reflex: nil, @@ -35,8 +36,8 @@ class ConfirmModalComponent < ModalComponent def modal_attrs @modal_attrs ||= { id: @id, - "data-controller": "modal #{@controller}", - "data-action": "keyup@document->modal#closeIfEscapeKey", + 'data-controller': "modal #{@controller}", + 'data-action': "keyup@document->modal#closeIfEscapeKey", "data-#{@controller}-reflex-value": @reflex }.merge(@controller_data_values) end diff --git a/app/reflexes/products_reflex.rb b/app/reflexes/products_reflex.rb index ab15b122b8..9768a43ef9 100644 --- a/app/reflexes/products_reflex.rb +++ b/app/reflexes/products_reflex.rb @@ -250,7 +250,7 @@ class ProductsReflex < ApplicationReflex end def product_finder(id) - ProductScopeQuery.new(current_user, {id:}) + ProductScopeQuery.new(current_user, { id: }) end def variant_scope