Refactor

what would be the best option apart from adding ` ; exit 0` to this line ?