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:
Ursprung
3e950036d0
Commit
401c711fad
1 geänderte Dateien mit 1 neuen und 6 gelöschten Zeilen
|
@ -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 = map_field(pair['key'], pair['key_type'])
|
||||||
key = @user.username
|
|
||||||
else
|
|
||||||
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)
|
||||||
|
|
Laden …
In neuem Issue referenzieren