aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--format/tsv/reader.ha2
-rw-r--r--hatask.ha4
2 files changed, 3 insertions, 3 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;
};
diff --git a/hatask.ha b/hatask.ha
index 599b1ac..747e2ef 100644
--- a/hatask.ha
+++ b/hatask.ha
@@ -40,13 +40,13 @@ fn listtasks(root: str = "tasks", context: str = "*") ([]task | rtaskerror) = {
if (context == "*" || fnmatch::fnmatch(context, dirent.name)) {
let buf = path::init()?;
const p = path::push(&buf, root, dirent.name)?;
- append(tasks, listtasks(p)?...);
+ append(tasks, listtasks(p)?...)!;
};
} else {
let buf = path::init()?;
const p = path::push(&buf, root, dirent.name)?;
let t = readtask(p)?;
- append(tasks, t);
+ append(tasks, t)!;
};
};
return tasks;