1
0
Fork 0

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|
connector = pair['connector']
operator = map_operator(connector)
if pair['key_type'] == 'wizard_user'
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)
begin
validation_result(key, value, operator)