Replace simple return if statements with ternary operators - #21672
Conversation
In a couple of cases, where a boolean is returned, it's also possible to use an OR operator rather a ternary. *Note:* This patch reduces the size of the `gulp mozcentral` bundle by `960` bytes.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21672 +/- ##
==========================================
+ Coverage 89.97% 90.00% +0.02%
==========================================
Files 263 263
Lines 66901 66859 -42
==========================================
- Hits 60196 60175 -21
+ Misses 6705 6684 -21
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/botio browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/a59b5775852b0f9/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/5eebb7b77c52b09/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/5eebb7b77c52b09/output.txt Total script time: 18.02 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/a59b5775852b0f9/output.txt Total script time: 23.27 mins
|
|
Looks good; thank you for doing this! |
In a couple of cases, where a boolean is returned, it's also possible to use an OR operator rather a ternary.
Note: This patch reduces the size of the
gulp mozcentralbundle by960bytes.