Skip to content

Commit

Permalink
fixed unneeded optional unwrap in hello_json
Browse files Browse the repository at this point in the history
  • Loading branch information
joeypas committed Feb 23, 2024
1 parent 0609f98 commit fb0f947
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 fb0f947

Please sign in to comment.