mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Silence warnings from Crystal 0.34
This commit is contained in:
parent
e891365ed7
commit
6b0526fc45
2 changed files with 5 additions and 0 deletions
|
@ -75,6 +75,8 @@ module Spectator
|
||||||
builder.randomize
|
builder.randomize
|
||||||
parts = method.split(':', 2)
|
parts = method.split(':', 2)
|
||||||
builder.seed = parts[1].to_i if parts.size > 1
|
builder.seed = parts[1].to_i if parts.size > 1
|
||||||
|
else
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -42,6 +42,9 @@ module Spectator
|
||||||
@failed_count += 1
|
@failed_count += 1
|
||||||
when PendingResult
|
when PendingResult
|
||||||
@pending_count += 1
|
@pending_count += 1
|
||||||
|
when Result
|
||||||
|
# This case isn't possible, but gets the compiler to stop complaining.
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue