(s string)
| 1186 | if errors.Is(err, io.EOF) { |
| 1187 | if record != "" { |
| 1188 | return io.ErrUnexpectedEOF |
| 1189 | } |
| 1190 | return nil |
| 1191 | } |
| 1192 | if err != nil { |
| 1193 | return err |
| 1194 | } |
| 1195 | } |
| 1196 | } |
| 1197 | |
| 1198 | func parseTreeRecord(repoID model.RepoID, line string) (model.BaseNode, string, bool) { |
| 1199 | parts := strings.SplitN(line, "\t", 2) |
| 1200 | if len(parts) != 2 { |
| 1201 | return model.BaseNode{}, "", false |
| 1202 | } |