| ... | @@ -114,7 +114,7 @@ pub fn parseCommit(alloc: std.mem.Allocator, commitfile: string) !Commit { | ... | @@ -114,7 +114,7 @@ pub fn parseCommit(alloc: std.mem.Allocator, commitfile: string) !Commit { |
| 114 | var parents = std.ArrayList(CommitId).init(alloc); | 114 | var parents = std.ArrayList(CommitId).init(alloc); |
| 115 | errdefer parents.deinit(); | 115 | errdefer parents.deinit(); |
| 116 | while (true) { | 116 | while (true) { |
| 117 | const line = iter.next().?; | 117 | const line = iter.next() orelse break; |
| 118 | if (line.len == 0) break; | 118 | if (line.len == 0) break; |
| 119 | const space = std.mem.indexOfScalar(u8, line, ' ').?; | 119 | const space = std.mem.indexOfScalar(u8, line, ' ').?; |
| 120 | const k = line[0..space]; | 120 | const k = line[0..space]; |