[algorithms][closest_feature] follow coding guidelines regarding "if (expr)" statements