Skip to content

Commit

Permalink
fix bug preventing access to $loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Aug 29, 2024
1 parent a19ef2a commit 65b5456
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/context.zig
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,9 @@ pub const Value = union(enum) {
else
context.Optional.Null,
Value => v,
?*context.Iterator => if (v) |opt|
try context.Optional.init(gpa, opt)
else
context.Optional.Null,
?*context.Iterator => if (v) |opt| .{
.iterator = opt,
} else context.Optional.Null,
*context.Iterator => .{ .iterator = v },
[]const []const u8 => .{
.iterator = try context.Iterator.init(gpa, .{
Expand Down

0 comments on commit 65b5456

Please sign in to comment.