Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
zackradisic committed Dec 12, 2024
1 parent 1eee0f6 commit a62d7c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/css/css_parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6250,13 +6250,11 @@ pub const serializer = struct {
// We must pass finite numbers to dtoa_short
if (std.math.isPositiveInf(value)) {
const output = "1e999";
@memcpy(buf[0..output.len], output);
try writer.writeAll(buf[0..output.len]);
try writer.writeAll(output);
return;
} else if (std.math.isNegativeInf(value)) {
const output = "-1e999";
@memcpy(buf[0..output.len], output);
try writer.writeAll(buf[0..output.len]);
try writer.writeAll(output);
return;
}
// We shouldn't receive NaN here.
Expand Down

0 comments on commit a62d7c1

Please sign in to comment.