[#11] unused double comparision