diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-08 00:33:50 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-08 00:33:50 +0200 |
| commit | 56856b6307e2a1aec392be0cd835458dc05c4e31 (patch) | |
| tree | 1af13a9fb4659f5af3665be4900938d9ce04f984 | |
| parent | 861ad2037ffffb22f20a6de328139b7c4817c639 (diff) | |
io: remove dead code in io.write_at_least
| -rw-r--r-- | core/io/io.odin | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/io/io.odin b/core/io/io.odin index 961dbe43e..6072aec6d 100644 --- a/core/io/io.odin +++ b/core/io/io.odin @@ -375,10 +375,6 @@ write_at_least :: proc(w: Writer, buf: []byte, min: int) -> (n: int, err: Error) nn, err = write(w, buf[n:]) n += nn } - - if err == nil && n < min { - err = .Short_Write - } return } |