mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
fix rubocop
This commit is contained in:
1 parent
f9c12b9d78
commit
9bfa6f7f4a
25 files changed
+27
-52
No files matched your search
@@ -19,7 +19,7 @@ module Submitters
|
||||
|
||||
module_function
|
||||
|
||||
# rubocop:disable Metrics
|
||||
# rubocop:disable-next Metrics
|
||||
def call(template, values, submitter_name: nil, role_names: nil, for_submitter: nil, throw_errors: false,
|
||||
add_fields: false, purpose: nil)
|
||||
fields =
|
||||
@@ -85,7 +85,6 @@ module Submitters
|
||||
|
||||
[normalized_values, attachments, new_fields]
|
||||
end
|
||||
# rubocop:enable Metrics
|
||||
|
||||
def normalize_value(field, value)
|
||||
if field['type'] == 'checkbox'
|
||||
|
||||
@@ -384,7 +384,7 @@ module Submitters
|
||||
end.exclude?(false)
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics
|
||||
# rubocop:disable-next Metrics
|
||||
def check_field_condition(condition, submitter_values, fields_uuid_index)
|
||||
value = submitter_values[condition['field_uuid']]
|
||||
field = fields_uuid_index[condition['field_uuid']]
|
||||
@@ -437,7 +437,6 @@ module Submitters
|
||||
true
|
||||
end
|
||||
end
|
||||
# rubocop:enable Metrics
|
||||
|
||||
def replace_default_variables(value, attrs, submission, with_time: false, field: nil)
|
||||
return value if value.in?([true, false]) || value.is_a?(Numeric) || value.is_a?(Array)
|
||||
|
||||
Reference in new issue
Block a user