Commit dc01ef7388

Loris Cro <kappaloris@gmail.com>
2020-09-25 23:21:20
Remove noop check
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
1 parent 8d01133
Changed files (1)
lib
std
lib/std/fs/file.zig
@@ -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);