mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Another place that needs a cast
This commit is contained in:
parent
613c969fbb
commit
39f5ea34eb
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ module Spectator
|
||||||
# The stub couldn't be easily cast to match the return type.
|
# The stub couldn't be easily cast to match the return type.
|
||||||
# Get the value as-is from the stub.
|
# Get the value as-is from the stub.
|
||||||
# This will be compiled as a union of all known stubbed value types.
|
# This will be compiled as a union of all known stubbed value types.
|
||||||
%value = {{stub}}.value
|
%value = {{stub}}.as(::Spectator::ValueStub).value
|
||||||
|
|
||||||
# Attempt to cast the value to the method's return type.
|
# Attempt to cast the value to the method's return type.
|
||||||
# If successful, which it will be in most cases, return it.
|
# If successful, which it will be in most cases, return it.
|
||||||
|
|
Loading…
Reference in a new issue