From 740d8c00d3947dccb08611545f49da2bc5094189 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Sun, 21 Oct 2018 12:53:05 -0700 Subject: writefrudata: add missing curly braces for style OpenBMC style dictates conditional statements needs curly braces. Change-Id: Iff7066dec2e7a376f2a97e67591ba95b7aa8549d Signed-off-by: Patrick Venture --- writefrudata.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'writefrudata.cpp') 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; -- cgit v1.2.3