[style]fix if...else in ConversionPatterns