From b2e8ad58d560f9fba36ec4ad6ef741f8cf9bd6ae Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sat, 1 Apr 2023 23:59:12 +0200 Subject: [PATCH] remove unnecessary returns --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bcc4613..a78c53c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,15 +67,15 @@ pub async fn isync_compare_hashes() -> bool { let body = res.json::().await.unwrap(); if body.success { println!("Hash: {} {}", hash, body.hash); - return body.hash == hash; + body.hash == hash } else { eprintln!("Error: {}", body.errorcode); - return true; + true } }, None => { eprintln!("No token found!"); - return true; + true } } } @@ -154,13 +154,13 @@ pub async fn isync_save() -> bool { let res = client.execute(req).await.unwrap(); let response = res.json::().await.unwrap(); if response.success { - return true; + true } else { if response.status == 200 { return true; } eprintln!("Error: {}", response.errorcode); - return false; + false } }, None => {