Skip to content

Commit 2248c55

Browse files
authored
Merge pull request #157 from gHashTag/feat/issue-155
fix(ralph): replace catch unreachable with try in ralph_orchestrator.zig init
2 parents a945e77 + 9478fa1 commit 2248c55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tri/ralph_orchestrator.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub const RalphOrchestrator = struct {
145145
.wake_time = current_time + @as(i64, @intCast(config.wake_interval_sec)),
146146
.next_wake_interval = config.wake_interval_sec,
147147
},
148-
.tasks = std.ArrayList(RalphTask).initCapacity(allocator, 0) catch unreachable,
148+
.tasks = try std.ArrayList(RalphTask).initCapacity(allocator, 0),
149149
};
150150
}
151151

0 commit comments

Comments
 (0)