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) } )) }