[codiag] small cleanup