From 22540ade308fc56804b52da4210c9b4a4825fc2d Mon Sep 17 00:00:00 2001 From: Eduard Tolosa Date: Thu, 8 Oct 2020 04:01:02 -0500 Subject: [PATCH] Remove debug code. --- src/main.rs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/main.rs b/src/main.rs index 543d1bd..4418328 100644 --- a/src/main.rs +++ b/src/main.rs @@ -128,26 +128,7 @@ async fn main() -> Result<(), Box> { valid_url = http_url.to_string(); response_code = resp.status().as_u16() } - // Code for debugging issues when needed - // match https_send_fut.await { - // Ok(resp) => { - // valid_url = https_url.to_string(); - // response_code = resp.status().as_u16(); - // } - // Err(e) => { - // println!( - // "Err checking {}, description: {}\n Trying HTTP...", - // https_url, e - // ); - // match http_send_fut.await { - // Ok(resp) => { - // valid_url = http_url.to_string(); - // response_code = resp.status().as_u16(); - // } - // Err(e) => println!("Err checking {}, description: {}", http_url, e), - // } - // } - // } + if (!valid_url.is_empty() && conditional_response_code == 0) || ((!valid_url.is_empty() && conditional_response_code != 0) && (response_code >= conditional_response_code