Skip to content

Commit

Permalink
Merge pull request #79 from joeypas/master
Browse files Browse the repository at this point in the history
fixed unneeded optional unwrap in hello_json
  • Loading branch information
renerocksai authored Feb 23, 2024
2 parents 0609f98 + fb0f947 commit 615319a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hello_json/hello_json.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 615319a

Please sign in to comment.