mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Remove unnecessary variable assignment
We aren't doing anything with the variable. Let's just return these values.
This commit is contained in:
parent
7e64e6a275
commit
7e83cfec8d
1 changed files with 2 additions and 4 deletions
|
@ -159,9 +159,9 @@ struct Enum
|
|||
|
||||
case value = rs.read
|
||||
when String
|
||||
result = parse value
|
||||
parse value
|
||||
when Int
|
||||
result = from_value value
|
||||
from_value value
|
||||
else
|
||||
raise DB::ColumnTypeMismatchError.new(
|
||||
context: "#{self}#new(rs : DB::ResultSet)",
|
||||
|
@ -171,7 +171,5 @@ struct Enum
|
|||
expected_type: "String | Int",
|
||||
)
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue