mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
Remove noop check
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
parent
8d01133bd0
commit
dc01ef7388
@ -416,7 +416,7 @@ pub const File = struct {
|
||||
return windows.ReadFile(self.handle, buffer, null, self.intended_io_mode);
|
||||
}
|
||||
|
||||
if (self.intended_io_mode == .blocking or !std.io.is_async) {
|
||||
if (self.intended_io_mode == .blocking) {
|
||||
return os.read(self.handle, buffer);
|
||||
} else {
|
||||
return std.event.Loop.instance.?.read(self.handle, buffer, self.capable_io_mode != self.intended_io_mode);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user