Skip to content

Commit da128f5

Browse files
committed
remove unecessary @intcast
1 parent 6e5fe8e commit da128f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn run(alloc: Allocator) !void {
138138
defer server.deinit();
139139

140140
// max timeout of 1 week.
141-
const timeout = if (opts.timeout > 604_800) 604_800_000 else @as(i32, @intCast(opts.timeout)) * 1000;
141+
const timeout = if (opts.timeout > 604_800) 604_800_000 else @as(i32, opts.timeout) * 1000;
142142
server.run(address, timeout) catch |err| {
143143
log.fatal(.app, "server run error", .{ .err = err });
144144
return err;

0 commit comments

Comments
 (0)