physical: Fix readability-braces-around-statements
```
/home/andrew/src/openbmc/phosphor-led-sysfs/build/../physical.cpp:135:25: error: statement should be inside braces [readability-braces-around-statements,-warnings-as-errors]
if (!color.length())
^
{
```
Change-Id: I7ac2e39c4a1b32e08df0161adfb305c25b968873
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/physical.cpp b/physical.cpp
index aa9d3e4..f62bca5 100644
--- a/physical.cpp
+++ b/physical.cpp
@@ -128,8 +128,12 @@
{
static const std::string prefix =
"xyz.openbmc_project.Led.Physical.Palette.";
+
if (color.empty())
+ {
return;
+ }
+
std::string tmp = color;
tmp[0] = toupper(tmp[0]);
try