summaryrefslogtreecommitdiffstats
path: root/writefrudata.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-21 12:53:05 -0700
committerPatrick Venture <venture@google.com>2018-10-30 08:28:31 -0700
commit740d8c00d3947dccb08611545f49da2bc5094189 (patch)
tree1e3501da7bb378ebe148027cd8b714792d122213 /writefrudata.cpp
parent9f65a08f8c8774a7c6a7661f46fe4e4a02f5c393 (diff)
downloadipmi-fru-parser-740d8c00d3947dccb08611545f49da2bc5094189.tar.gz
ipmi-fru-parser-740d8c00d3947dccb08611545f49da2bc5094189.zip
writefrudata: add missing curly braces for style
OpenBMC style dictates conditional statements needs curly braces. Change-Id: Iff7066dec2e7a376f2a97e67591ba95b7aa8549d Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'writefrudata.cpp')
-rw-r--r--writefrudata.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/writefrudata.cpp b/writefrudata.cpp
index d9de3fe..3c4ee20 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -101,7 +101,9 @@ std::string getFRUValue(const std::string& section, const std::string& key,
{
size_t delimiterpos = fruValue.find(delimiter);
if (delimiterpos != std::string::npos)
+ {
fruValue = fruValue.substr(delimiterpos + 1);
+ }
}
}
return fruValue;
OpenPOWER on IntegriCloud