From 9610a6ce442d88b2e02dd7ed4a23298a4135fa47 Mon Sep 17 00:00:00 2001 From: Marius <33354141+Mariusthvdb@users.noreply.github.com> Date: Mon, 31 Jul 2023 12:03:43 +0200 Subject: [PATCH] take out () on ternary as they are not required, like when using the if () syntax --- EXAMPLES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index 6535552..da63e7e 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -532,8 +532,8 @@ Alternatively, you can use the ternary notation, which makes for neat and short - templates templates: icon: > - return (state === 'on') ? 'mdi:test-tube' : 'mdi:test-tube-off'; + return state === 'on' ? 'mdi:test-tube' : 'mdi:test-tube-off'; <<: &state_color icon_color: > - return (state === 'on') ? 'var(--primary-color)' : 'grey'; + return state === 'on' ? 'var(--primary-color)' : 'grey'; ```