From 4c0d179f58cbf1d80fc496a6bf9bfdec22aa584f Mon Sep 17 00:00:00 2001
From: Matteo Pignataro <matteo.pignataro@skywarder.eu>
Date: Sun, 27 Nov 2022 11:40:53 +0100
Subject: [PATCH] [ActiveObject] Put curly brackets in 1 instruction if

---
 src/shared/ActiveObject.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/shared/ActiveObject.h b/src/shared/ActiveObject.h
index acfc07e34..2fdbb68c4 100644
--- a/src/shared/ActiveObject.h
+++ b/src/shared/ActiveObject.h
@@ -125,7 +125,9 @@ inline bool ActiveObject::start()
                                         miosix::Thread::JOINABLE);
 
         if (thread == nullptr)
+        {
             running = false;
+        }
 
         return running;
     }
@@ -148,7 +150,6 @@ inline bool ActiveObject::shouldStop() { return stopFlag; }
 
 inline void ActiveObject::threadLauncher(void* arg)
 {
-
     reinterpret_cast<ActiveObject*>(arg)->run();
 
     // When the run function ends, update the status
-- 
GitLab