[feature] remove return statement from void f