Skip to content

Commit

Permalink
Remove unnecessary parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
imtayadeway authored and d-m-u committed Jun 6, 2018
1 parent eb9ed5b commit 0e1ff4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/miq_expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ def to_arel(exp, tz)
operator = exp.keys.first
field = Field.parse(exp[operator]["field"]) if exp[operator].kind_of?(Hash) && exp[operator]["field"]
arel_attribute = field && field.target.arel_attribute(field.column)
if(exp[operator].kind_of?(Hash) && exp[operator]["value"] && Field.is_field?(exp[operator]["value"]))
if exp[operator].kind_of?(Hash) && exp[operator]["value"] && Field.is_field?(exp[operator]["value"])
field_value = Field.parse(exp[operator]["value"])
parsed_value = field_value.target.arel_attribute(field_value.column)
elsif exp[operator].kind_of?(Hash)
Expand Down

0 comments on commit 0e1ff4d

Please sign in to comment.