File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -122,5 +122,5 @@ struct KeywordArgumentExpression: Expression {
122
122
}
123
123
124
124
struct NullLiteral : Literal {
125
- var value : Any ? = nil
125
+ var value : Any ? = nil
126
126
}
Original file line number Diff line number Diff line change @@ -167,15 +167,15 @@ class Environment {
167
167
return ObjectValue ( value: object)
168
168
case is NullValue :
169
169
return NullValue ( )
170
- case Optional< Any> . none:
171
- return NullValue ( )
170
+ // case Optional<Any>.none:
171
+ // return NullValue()
172
172
default :
173
173
throw JinjaError . runtime ( " Cannot convert to runtime value: \( input) type: \( type ( of: input) ) " )
174
174
}
175
175
}
176
176
177
177
@discardableResult
178
- func set( name: String , value: Any ? ) throws -> any RuntimeValue {
178
+ func set( name: String , value: Any ) throws -> any RuntimeValue {
179
179
try self . declareVariable ( name: name, value: self . convertToRuntimeValues ( input: value) )
180
180
}
181
181
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ struct BooleanValue: RuntimeValue {
35
35
}
36
36
37
37
struct NullValue : RuntimeValue {
38
- var value : Any ? = nil
38
+ var value : ( any RuntimeValue ) ?
39
39
var builtins : [ String : any RuntimeValue ] = [ : ]
40
40
41
41
func bool( ) -> Bool {
You can’t perform that action at this time.
0 commit comments