From 57c5161c574cb98e2e98e2f6696ea7337c7cc294 Mon Sep 17 00:00:00 2001 From: Brian Pepple Date: Fri, 8 Oct 2021 22:43:06 -0400 Subject: [PATCH] Replace if statement with if expression --- darkseid/issuestring.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/darkseid/issuestring.py b/darkseid/issuestring.py index 62d6f80..5f81898 100644 --- a/darkseid/issuestring.py +++ b/darkseid/issuestring.py @@ -89,10 +89,7 @@ def as_string(self, pad: int = 0) -> str: num_f: float = abs(self.num) num_int = int(num_f) - num_s = str(num_int) - if float(num_int) != num_f: - num_s = str(num_f) - + num_s = str(num_f) if float(num_int) != num_f else str(num_int) num_s += self.suffix # create padding