From cfd4d41a73789808ffd5b3d9a472b0f696ec7945 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Sun, 16 Jul 2023 09:15:46 -0400 Subject: [PATCH] Adjust for style --- src/format.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/format.rs b/src/format.rs index a6b50c3..8cb5efb 100644 --- a/src/format.rs +++ b/src/format.rs @@ -45,10 +45,10 @@ pub(super) async fn format_status( Ok(format!( "{}{}", ancestor, - if !thread.is_empty() { - format!("\n{}", thread) - } else { + if thread.is_empty() { String::default() + } else { + format!("\n{}", thread) } )) }