add condition instead
Revert "fix(c10n): fix a few c10n errors"

This reverts commit af885f52ef01767332de32230d87c9f137000c55.