aboutsummaryrefslogtreecommitdiff
path: root/format/tsv/reader.ha
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2025-01-15 18:08:44 +0100
committerJulian Hurst <julian.hurst@digdash.com>2025-01-15 18:09:44 +0100
commit4129e3dba2cc3953af6b97fc1c99a1516b9214cd (patch)
tree6ac189e2733d817a7002eb622f5155cc3a14819f /format/tsv/reader.ha
parentee5a390445db5af3635bd4c797aed86222f82e80 (diff)
downloadhatask-4129e3dba2cc3953af6b97fc1c99a1516b9214cd.tar.gz
Update code to compile with new Hare version
append may now return an error so asserts were added
Diffstat (limited to 'format/tsv/reader.ha')
-rw-r--r--format/tsv/reader.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/format/tsv/reader.ha b/format/tsv/reader.ha
index 326e24b..4422b9f 100644
--- a/format/tsv/reader.ha
+++ b/format/tsv/reader.ha
@@ -13,7 +13,7 @@ export fn readrecords(r: io::handle) ([][]str | io::error | utf8::invalid) = {
let records: [][]str = [];
for (const line: str => bufio::scan_line(&sc)?) {
- append(records, strings::dupall(strings::split(line, "\t")));
+ append(records, strings::dupall(strings::split(line, "\t")))!;
};
return records;
};