Silence warnings from Crystal 0.34

This commit is contained in:
Michael Miller 2020-04-06 18:23:53 -06:00
parent e891365ed7
commit 6b0526fc45
2 changed files with 5 additions and 0 deletions

View file

@ -75,6 +75,8 @@ module Spectator
builder.randomize
parts = method.split(':', 2)
builder.seed = parts[1].to_i if parts.size > 1
else
nil
end
end
end

View file

@ -42,6 +42,9 @@ module Spectator
@failed_count += 1
when PendingResult
@pending_count += 1
when Result
# This case isn't possible, but gets the compiler to stop complaining.
nil
end
end
end