Remove unecessary underscores

This commit is contained in:
Michael Miller 2018-09-06 22:23:57 -06:00
parent 4df8a1013d
commit 5646a6ebd9

View file

@ -85,14 +85,14 @@ module Spectator
let!({{name}}!) {{block}} let!({{name}}!) {{block}}
module Locals module Locals
@_%wrapper : ValueWrapper? @%wrapper : ValueWrapper?
def {{name.id}} def {{name.id}}
if (wrapper = @_%wrapper) if (wrapper = @%wrapper)
wrapper.as(TypedValueWrapper(typeof({{name.id}}!))).value wrapper.as(TypedValueWrapper(typeof({{name.id}}!))).value
else else
{{name.id}}!.tap do |value| {{name.id}}!.tap do |value|
@_%wrapper = TypedValueWrapper(typeof({{name.id}}!)).new(value) @%wrapper = TypedValueWrapper(typeof({{name.id}}!)).new(value)
end end
end end
end end