[corlib] minor code cleanup