lint: fix trivial clang tidy errors
Change-Id: Ie5395004a451d6168249f56f75c5e6ae31dca4af
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/fail-monitor/monitor.cpp b/fail-monitor/monitor.cpp
index 97316c9..2c4beb7 100644
--- a/fail-monitor/monitor.cpp
+++ b/fail-monitor/monitor.cpp
@@ -38,13 +38,13 @@
void Monitor::analyze()
{
- if (inFailedState(std::move(getSourceUnitPath())))
+ if (inFailedState(getSourceUnitPath()))
{
runTargetAction();
}
}
-bool Monitor::inFailedState(const std::string&& path)
+bool Monitor::inFailedState(const std::string& path)
{
std::variant<std::string> property;
@@ -93,7 +93,8 @@
void Monitor::runTargetAction()
{
// Start or stop the target unit
- auto methodCall = (action == Action::start) ? startMethod : stopMethod;
+ const auto* methodCall =
+ (action == Action::start) ? startMethod : stopMethod;
log<level::INFO>("The source unit is in failed state, "
"running target action",