From ffe1e8e0589c89ef0f700258ccce2dbfd62e5851 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 30 Nov 2019 21:44:38 +0000 Subject: [PATCH] Radar power ternary statement --- nui/radar.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nui/radar.js b/nui/radar.js index 5d541fc..bad48d2 100644 --- a/nui/radar.js +++ b/nui/radar.js @@ -266,11 +266,7 @@ function poweredUp() function radarPower( state ) { - if ( state ) { - poweringUp() - } else { - clearEverything(); - } + state ? poweringUp() : clearEverything(); } // This function is used to send data back through to the LUA side