From fb0f947e5a2463a9586b941f797bca19320a16d4 Mon Sep 17 00:00:00 2001 From: Joe Liotta Date: Thu, 22 Feb 2024 19:12:44 -0500 Subject: [PATCH] fixed unneeded optional unwrap in hello_json --- examples/hello_json/hello_json.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hello_json/hello_json.zig b/examples/hello_json/hello_json.zig index 42640ce..cdbc51f 100644 --- a/examples/hello_json/hello_json.zig +++ b/examples/hello_json/hello_json.zig @@ -7,7 +7,7 @@ const User = struct { }; fn on_request(r: zap.Request) void { - if (r.method.? != .GET) return; + if (r.method != .GET) return; // /user/n if (r.path) |the_path| {