Skip to content

Commit 353a744

Browse files
committed
style(sandbox): fix formatting in proxy L7 query param parsing
1 parent 325639c commit 353a744

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/openshell-sandbox/src/proxy.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,10 +1838,8 @@ async fn handle_forward_proxy(
18381838
secret_resolver: secret_resolver.clone(),
18391839
};
18401840

1841-
let (target_path, query_params) =
1842-
crate::l7::rest::parse_target_query(&path).unwrap_or_else(|_| {
1843-
(path.clone(), std::collections::HashMap::new())
1844-
});
1841+
let (target_path, query_params) = crate::l7::rest::parse_target_query(&path)
1842+
.unwrap_or_else(|_| (path.clone(), std::collections::HashMap::new()));
18451843
let request_info = crate::l7::L7RequestInfo {
18461844
action: method.to_string(),
18471845
target: target_path,

0 commit comments

Comments
 (0)