11068: fix lint issues

This commit is contained in:
Ahmed Ejaz
2023-12-14 01:56:30 +05:00
parent a321a962a5
commit 1936adc82f
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
# frozen_string_literal: true
class ConfirmModalComponent < ModalComponent
# @param controller_data_values [Array(Hash)] format: {<value-name-1>: value1, <value-name-2>: value2}
# @param controller_data_values [Array(Hash)]
# format: {<value-name-1>: value1, <value-name-2>: 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

View File

@@ -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