fix(cli): remaining ArrayList API fixes in dataset and queue commands
This commit is contained in:
parent
b1c9bc97fc
commit
1a1844e9e9
2 changed files with 8 additions and 7 deletions
|
|
@ -412,11 +412,12 @@ fn verifyDataset(allocator: std.mem.Allocator, target: []const u8, options: *con
|
|||
}
|
||||
|
||||
// Compute native SHA256 hash
|
||||
const hash = native_hash.hashDirectory(allocator, path) catch |err| {
|
||||
colors.printWarning("Hash computation failed: {s}\n", .{@errorName(err)});
|
||||
// Continue without hash - verification still succeeded
|
||||
const hash_str: ?[]const u8 = null;
|
||||
_ = hash_str;
|
||||
const hash = blk: {
|
||||
break :blk native_hash.hashDirectory(allocator, path) catch |err| {
|
||||
colors.printWarning("Hash computation failed: {s}\n", .{@errorName(err)});
|
||||
// Continue without hash - verification still succeeded
|
||||
break :blk null;
|
||||
};
|
||||
};
|
||||
defer if (hash) |h| allocator.free(h);
|
||||
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ pub const SubmitResult = struct {
|
|||
job_count: usize,
|
||||
errors: std.ArrayList([]const u8),
|
||||
|
||||
pub fn init(allocator: std.mem.Allocator) SubmitResult {
|
||||
pub fn init() SubmitResult {
|
||||
return .{
|
||||
.success = true,
|
||||
.job_count = 0,
|
||||
.errors = std.ArrayList([]const u8).init(allocator),
|
||||
.errors = .empty,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue