[minor] fix missing return statement