mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
misc fixes
This commit is contained in:
@@ -49,6 +49,8 @@ pub const BufferVectorized = struct {
|
||||
Encoder.writeU8(str.slice().ptr, str.slice().len, buf.ptr, buf.len, .hex),
|
||||
} catch return false;
|
||||
|
||||
if (written == 0 and str.length() > 0) return false;
|
||||
|
||||
switch (written) {
|
||||
0 => return true,
|
||||
1 => {
|
||||
|
||||
Reference in New Issue
Block a user