[#2212] remove extraneous if