Fix build error

This commit is contained in:
Jarred SUmner
2022-11-14 04:14:23 -08:00
parent 20eff9f6d2
commit 3df5843503
2 changed files with 1 additions and 6 deletions

View File

@@ -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

View File

@@ -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 {};
}