commit | c5e0f31c4e6c69a1d50168dfdcc3537cdaf56fc6 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Mon Dec 27 15:54:31 2021 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Wed Dec 29 10:12:13 2021 +0800 |
tree | defaf227d3a8268b5c3e0fc79a3560921214756a | |
parent | db6d763891a8526197478c24616b8740f92742d5 [diff] [blame] |
Fix some warnings by cppcheck Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Icee0abe2e3130aa225db776efdcd47200eb38f8d
diff --git a/fault-monitor/operational-status-monitor.cpp b/fault-monitor/operational-status-monitor.cpp index ffed55f..de6ee21 100644 --- a/fault-monitor/operational-status-monitor.cpp +++ b/fault-monitor/operational-status-monitor.cpp
@@ -81,9 +81,7 @@ return {}; } - auto& endpoints = std::get<std::vector<std::string>>(endpoint); - - return endpoints; + return std::get<std::vector<std::string>>(endpoint); } void Monitor::updateAssertedProperty(