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:
parent
1f6e945c08
commit
4393866ea5
1 changed files with 1 additions and 1 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Reference in a new issue