0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-15 14:22:53 +01:00

FIX: removed redundant conditional

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-05-02 23:03:29 +05:30
Ursprung 3e950036d0
Commit 401c711fad

Datei anzeigen

@ -106,12 +106,7 @@ class CustomWizard::Mapper
pairs.all? do |pair| pairs.all? do |pair|
connector = pair['connector'] connector = pair['connector']
operator = map_operator(connector) operator = map_operator(connector)
if pair['key_type'] == 'wizard_user'
key = @user.username
else
key = map_field(pair['key'], pair['key_type']) key = map_field(pair['key'], pair['key_type'])
end
value = cast_value(map_field(pair['value'], pair['value_type']), key, connector) value = cast_value(map_field(pair['value'], pair['value_type']), key, connector)
begin begin
validation_result(key, value, operator) validation_result(key, value, operator)