summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/frob/char.ts4
-rw-r--r--server/frob/storage.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/server/frob/char.ts b/server/frob/char.ts
index e0cb5f3..e5bb1e9 100644
--- a/server/frob/char.ts
+++ b/server/frob/char.ts
@@ -62,9 +62,9 @@ class CharParser {
let accumulator = "";
while (true) {
- const { nread, eof } = await Deno.read(file.rid, buf);
+ const nread = await Deno.read(file.rid, buf);
- if (eof) {
+ if (nread === Deno.EOF) {
break;
}
diff --git a/server/frob/storage.ts b/server/frob/storage.ts
index 720cd4b..f8a5351 100644
--- a/server/frob/storage.ts
+++ b/server/frob/storage.ts
@@ -44,9 +44,9 @@ class StorageParser {
let accumulator = "";
while (true) {
- const { nread, eof } = await Deno.read(file.rid, buf);
+ const nread = await Deno.read(file.rid, buf);
- if (eof) {
+ if (nread === Deno.EOF) {
break;
}