diff options
Diffstat (limited to 'src/bun.js/webcore/blob.zig')
-rw-r--r-- | src/bun.js/webcore/blob.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig index 7ce254ca8..49564c1fd 100644 --- a/src/bun.js/webcore/blob.zig +++ b/src/bun.js/webcore/blob.zig @@ -3673,11 +3673,7 @@ pub const Blob = struct { if (comptime lifetime != .temporary) this.setIsASCIIFlag(true); } - if (comptime lifetime == .temporary) { - return ZigString.init(buf).toJSONObject(global); - } else { - return ZigString.init(buf).toJSONObject(global); - } + return ZigString.init(buf).toJSONObject(global); } pub fn toFormDataWithBytes(this: *Blob, global: *JSGlobalObject, buf: []u8, comptime _: Lifetime) JSValue { |