summaryrefslogtreecommitdiff
path: root/lib/bio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bio')
-rw-r--r--lib/bio/bio.myr8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/bio/bio.myr b/lib/bio/bio.myr
index eae9137..f9517ca 100644
--- a/lib/bio/bio.myr
+++ b/lib/bio/bio.myr
@@ -246,13 +246,11 @@ const flush = {f
ret = true
if f.mode & Wr != 0
match writebuf(f.fd, f.wbuf[:f.wend])
- | `Ok n:
- ret = (n == f.wend)
- f.wend = 0
- | _:
- -> false
+ | `Ok n: ret = (n == f.wend)
+ | _: ret = false
;;
;;
+ f.wend = 0
-> ret
}