1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00

Merge pull request #79 from joeypas/master

fixed unneeded optional unwrap in hello_json
This commit is contained in:
Rene Schallner 2024-02-23 03:01:33 +01:00 committed by GitHub
commit 615319ad39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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| {