Remove unnecessary cast

This commit is contained in:
Michael Miller 2022-12-20 20:11:09 -07:00
parent c4bcf54b98
commit b8901f522a
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2

View file

@ -118,7 +118,7 @@ module Spectator
begin
@result = Harness.run do
if proc = @name_proc.as?(Proc(Example, String))
if proc = @name_proc
self.name = proc.call(self)
end