Less indentation

merge-requests/30/head
Bob Mottram 2021-03-15 14:31:33 +00:00
parent c7eb730c06
commit 0a7f214163
1 changed files with 6 additions and 5 deletions

View File

@ -46,11 +46,12 @@ def _showDesktopBanner() -> None:
"""Shows the banner at the top """Shows the banner at the top
""" """
bannerFilename = 'theme/starlight/banner.txt' bannerFilename = 'theme/starlight/banner.txt'
if os.path.isfile(bannerFilename): if not os.path.isfile(bannerFilename):
with open(bannerFilename, 'r') as bannerFile: return
banner = bannerFile.read() with open(bannerFilename, 'r') as bannerFile:
if banner: banner = bannerFile.read()
print(banner + '\n') if banner:
print(banner + '\n')
def _waitForKeypress(timeout: int, debug: bool) -> str: def _waitForKeypress(timeout: int, debug: bool) -> str: