Skip to content

fix(ralph): replace catch unreachable with try in ralph_orchestrator.zig init #155

Description

@gHashTag

Task

In src/tri/ralph_orchestrator.zig line 148, ArrayList initialization uses catch unreachable:

.tasks = std.ArrayList(RalphTask).initCapacity(allocator, 0) catch unreachable,

Allocation can fail. Use try instead.

Fix

.tasks = try std.ArrayList(RalphTask).initCapacity(allocator, 0),

Ensure the enclosing function returns an error union if needed.

File

  • src/tri/ralph_orchestrator.zig — line 148

Acceptance

  • zig build compiles without errors
  • zig fmt passes
  • No catch unreachable on ArrayList init

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:spawnAuto-spawn agent container

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions