From 7b5598d0de12573205415136fbb9aa467e30fa8a Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 16 Jun 2023 00:33:31 +0530 Subject: status only for non-empty pulls --- src/status.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/status.rs') diff --git a/src/status.rs b/src/status.rs index 205e2a9..4479a69 100644 --- a/src/status.rs +++ b/src/status.rs @@ -27,6 +27,10 @@ impl PullStatus { impl fmt::Display for PullStatus { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + if self.is_empty() { + return Ok(()); + } + write!( f, "{}", -- cgit v1.2.3