mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 04:18:58 +00:00
Fix build error
This commit is contained in:
@@ -3660,7 +3660,7 @@ pub const FileReader = struct {
|
||||
|
||||
var buf_to_use = read_buf;
|
||||
var free_buffer_on_error: bool = false;
|
||||
var pipe_is_empty_on_linux = bun.VoidUnless(bool, Environment.isLinux, false);
|
||||
var pipe_is_empty_on_linux = false;
|
||||
var len: c_int = available_to_read orelse 0;
|
||||
|
||||
// if it's a pipe, we really don't know what to expect what the max size will be
|
||||
|
||||
@@ -396,8 +396,3 @@ pub fn once(comptime function: anytype, comptime ReturnType: type) ReturnType {
|
||||
|
||||
return Result.execute();
|
||||
}
|
||||
|
||||
pub fn VoidUnless(comptime T: type, comptime cond: bool, comptime default: T) T {
|
||||
if (cond) return default;
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user