Remove repeated branches
Removes repeated branches in if/else if/else chains,consecutive
repeated branches in switch statements and identical true and
false branches in conditional operators. This also helps in
clang-tidy checks.
Change-Id: Ia9c27163ae07054fdceb65c14fea13052c5160a4
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/pldmtool/pldm_bios_cmd.cpp b/pldmtool/pldm_bios_cmd.cpp
index e1acf84..fead185 100644
--- a/pldmtool/pldm_bios_cmd.cpp
+++ b/pldmtool/pldm_bios_cmd.cpp
@@ -408,14 +408,7 @@
{
auto cv = pldm_bios_table_attr_value_entry_integer_decode_cv(
tableEntry);
- if (verbose)
- {
- output["CurrentValue"] = cv;
- }
- else
- {
- output["CurrentValue"] = cv;
- }
+ output["CurrentValue"] = cv;
break;
}
case PLDM_BIOS_STRING: