fix pylint complaining about only one hard return