fix pylint error. missing hard return