From 302e83416d0934535b509ecb92484aa11321b7fe Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sun, 5 Jun 2016 23:43:46 +0200 Subject: [PATCH] Use one-liner. --- gitfiti.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gitfiti.py b/gitfiti.py index 982b06447f..d0ef78ae82 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -324,10 +324,7 @@ def main(): print('Enter your GitHub username:') username = request_user_input() - if not ghe: - git_base = GITHUB_BASE_URL - else: - git_base = ghe + git_base = ghe if ghe else GITHUB_BASE_URL cal = get_calendar(username, git_base)