Skip to content

Commit c3e4da8

Browse files
mikolalysenkoclaude
andcommitted
fix: remove identical if/else branches in scan.rs flagged by clippy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1641ed4 commit c3e4da8

File tree

1 file changed

+3
-6
lines changed
  • crates/socket-patch-cli/src/commands

1 file changed

+3
-6
lines changed

crates/socket-patch-cli/src/commands/scan.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ pub async fn run(args: ScanArgs) -> i32 {
5353
std::env::set_var("SOCKET_API_TOKEN", token);
5454
}
5555

56-
let (api_client, use_public_proxy) = get_api_client_from_env(args.org.as_deref()).await;
56+
let (api_client, _use_public_proxy) = get_api_client_from_env(args.org.as_deref()).await;
5757

58-
let effective_org_slug: Option<&str> = if use_public_proxy {
59-
None
60-
} else {
61-
None // org slug is already stored in the client
62-
};
58+
// org slug is already stored in the client
59+
let effective_org_slug: Option<&str> = None;
6360

6461
let crawler_options = CrawlerOptions {
6562
cwd: args.cwd.clone(),

0 commit comments

Comments
 (0)