Skip to content

Commit dc01ef7

Browse files
Remove noop check
Co-authored-by: Andrew Kelley <[email protected]>
1 parent 8d01133 commit dc01ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/fs/file.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ pub const File = struct {
416416
return windows.ReadFile(self.handle, buffer, null, self.intended_io_mode);
417417
}
418418

419-
if (self.intended_io_mode == .blocking or !std.io.is_async) {
419+
if (self.intended_io_mode == .blocking) {
420420
return os.read(self.handle, buffer);
421421
} else {
422422
return std.event.Loop.instance.?.read(self.handle, buffer, self.capable_io_mode != self.intended_io_mode);

0 commit comments

Comments
 (0)