From df0f043e3a926452c89fd1e7c1a0769d22a848d3 Mon Sep 17 00:00:00 2001 From: Anthony Brignano Date: Sat, 12 Dec 2020 16:21:48 -0500 Subject: [PATCH] remove redundant if-else --- main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 456f39d..eadd405 100644 --- a/main.py +++ b/main.py @@ -424,10 +424,8 @@ def get_short_info(github): else: string += "> 🚫 " + translate["Not Opted to Hire"] + "\n > \n" - string += '> 📜 ' + translate['public repositories'] % public_repo + " " + '\n > \n' if public_repo > 1 else translate[ - 'public repository'] % public_repo + ' \n > \n' - string += '> 🔑 ' + translate['private repositories'] % private_repo + " " +' \n\n' if private_repo > 1 else translate[ - 'private repository'] % public_repo + ' \n > \n' + string += '> 📜 ' + translate['public repositories'] % public_repo + " " + '\n > \n' + string += '> 🔑 ' + translate['private repositories'] % private_repo + " " +' \n > \n' return string