diff --git a/infrastructure/strikes/src/put_strikes.rs b/infrastructure/strikes/src/put_strikes.rs index 7a05783..709b2d0 100644 --- a/infrastructure/strikes/src/put_strikes.rs +++ b/infrastructure/strikes/src/put_strikes.rs @@ -7,20 +7,16 @@ async fn function_handler(request: Request) -> Result, Error> { tracing::info!("User: {:?}", user); match user { - Some(user) => { - Ok(Response::builder() - .status(200) - .header("Content-Type", "text/plain") - .body(Body::from(format!("Hello, {}!", user))) - .unwrap()) - } - None => { - Ok(Response::builder() - .status(400) - .header("Content-Type", "text/plain") - .body(Body::from("Missing user parameter")) - .unwrap()) - } + Some(user) => Ok(Response::builder() + .status(200) + .header("Content-Type", "text/plain") + .body(Body::from(format!("Hello, {}!", user))) + .unwrap()), + None => Ok(Response::builder() + .status(400) + .header("Content-Type", "text/plain") + .body(Body::from("Missing user parameter")) + .unwrap()), } }