mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Comply exhaustive case check
Comply exhaustive case check
This commit is contained in:
parent
f08a4da60a
commit
af200eac54
2 changed files with 4 additions and 0 deletions
|
@ -246,6 +246,8 @@ describe DummyDriver do
|
|||
rs.read(Int64, Int64).should eq({3i64, 4i64})
|
||||
when 1
|
||||
rs.read(Int64, Int64).should eq({1i64, 2i64})
|
||||
else
|
||||
raise "unreachable"
|
||||
end
|
||||
i += 1
|
||||
end
|
||||
|
|
|
@ -505,6 +505,8 @@ module DB
|
|||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
raise "Invalid prepared value. Allowed values are :both and :default"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue