[build][fr] remove ternary operator