Skip to content
Snippets Groups Projects
Verified Commit b02e4da6 authored by Newbyte's avatar Newbyte :snowflake:
Browse files

mrhlpr, mrtest: Simplify call to main()

frontend.main() only ever returns None, so there's no point in
calling sys.exit with its return value as parameter.
parent 82cd1346
No related branches found
No related tags found
1 merge request!52mrhlpr, mrtest: Add lots of type hints and fix type errors + CI: Run mypy with --disallow-untyped-calls
......@@ -3,8 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# PYTHON_ARGCOMPLETE_OK
import sys
import mrhlpr.frontend
if __name__ == "__main__":
sys.exit(mrhlpr.frontend.main())
mrhlpr.frontend.main()
......@@ -254,7 +254,7 @@ def parse_args() -> argparse.Namespace:
return parser.parse_args()
def main():
def main() -> None:
args = parse_args()
if args.verbose:
logging.getLogger().setLevel(logging.DEBUG)
......
......@@ -3,8 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# PYTHON_ARGCOMPLETE_OK
import sys
import mrtest.frontend
if __name__ == "__main__":
sys.exit(mrtest.frontend.main())
mrtest.frontend.main()
......@@ -69,7 +69,7 @@ def parse_args():
return parser.parse_args()
def main():
def main() -> None:
args = parse_args()
if args.verbose:
logging.getLogger().setLevel(logging.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment