Remove unnecessary variable assignment

We aren't doing anything with the variable. Let's just return these
values.
This commit is contained in:
Jamie Gaskins 2022-04-17 23:13:19 -04:00
parent 7e64e6a275
commit 7e83cfec8d

View file

@ -159,9 +159,9 @@ struct Enum
case value = rs.read case value = rs.read
when String when String
result = parse value parse value
when Int when Int
result = from_value value from_value value
else else
raise DB::ColumnTypeMismatchError.new( raise DB::ColumnTypeMismatchError.new(
context: "#{self}#new(rs : DB::ResultSet)", context: "#{self}#new(rs : DB::ResultSet)",
@ -171,7 +171,5 @@ struct Enum
expected_type: "String | Int", expected_type: "String | Int",
) )
end end
result
end end
end end