mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use #unsafe_as
The value can't be any other type, so this should be a safe operation.
This commit is contained in:
parent
fbea3533ea
commit
5b275f3146
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ module Spectator
|
||||||
|
|
||||||
def {{name.id}}
|
def {{name.id}}
|
||||||
if (wrapper = @%wrapper)
|
if (wrapper = @%wrapper)
|
||||||
wrapper.as(TypedValueWrapper(typeof(%value))).value
|
wrapper.unsafe_as(TypedValueWrapper(typeof(%value))).value
|
||||||
else
|
else
|
||||||
%value.tap do |value|
|
%value.tap do |value|
|
||||||
@%wrapper = TypedValueWrapper(typeof(%value)).new(value)
|
@%wrapper = TypedValueWrapper(typeof(%value)).new(value)
|
||||||
|
|
Loading…
Reference in a new issue