1
0
mirror of synced 2025-01-23 22:54:08 +01:00

__init__.py: Remove unnecessary return variables

This commit is contained in:
Viv 2023-07-10 00:40:22 -04:00
parent 6baf2e55f2
commit 86c8909b0f

View File

@ -9,12 +9,8 @@ from tja2fumen.constants import COURSE_IDS
def main(argv=None):
# NB: We want to return variables during testing, but not during CLI (or else they will be printed to stderr)
if argv:
return_vars = True
else:
if not argv:
argv = sys.argv[1:]
return_vars = False
parser = argparse.ArgumentParser(
description="tja2fumen"
@ -46,9 +42,6 @@ def main(argv=None):
outputFilenames.append(outputName)
writeFumen(outputName, fumenData)
if return_vars:
return parsedSongsTJA, parsedSongsFumen, outputFilenames
# NB: This entry point is necessary for the Pyinstaller executable
if __name__ == "__main__":