1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

fixed unneeded optional unwrap in hello_json

This commit is contained in:
Joe Liotta 2024-02-22 19:12:44 -05:00
parent 0609f98e05
commit fb0f947e5a
No known key found for this signature in database
GPG key ID: B9CF6E19280E8838

View file

@ -7,7 +7,7 @@ const User = struct {
}; };
fn on_request(r: zap.Request) void { fn on_request(r: zap.Request) void {
if (r.method.? != .GET) return; if (r.method != .GET) return;
// /user/n // /user/n
if (r.path) |the_path| { if (r.path) |the_path| {