From d91173c6bd464cb7faf1e0221b65a376894fbebb Mon Sep 17 00:00:00 2001 From: Mario Apra Date: Fri, 28 Sep 2018 22:34:10 +1200 Subject: [PATCH] #17: remove unnecessary if..else --- onedrived/od_pref.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/onedrived/od_pref.py b/onedrived/od_pref.py index b7bec9a..b15646c 100755 --- a/onedrived/od_pref.py +++ b/onedrived/od_pref.py @@ -248,10 +248,7 @@ def print_all_drives(): for i in context.all_accounts(): drive_objs = [] profile = context.get_account(i) - if profile.account_type == account_profile.AccountTypes.BUSINESS: - authenticator, drives = od_auth.get_authenticator_and_drives(context, i) - else: - authenticator, drives = od_auth.get_authenticator_and_drives(context, i) + authenticator, drives = od_auth.get_authenticator_and_drives(context, i) for d in drives: drive_objs.append(d) if profile.account_type == account_profile.AccountTypes.BUSINESS: