[coco] Remove unnecessary indentation in Update.cpp (#1770)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 8 Oct 2018 03:53:44 +0000 (12:53 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 8 Oct 2018 03:53:44 +0000 (12:53 +0900)
This commit removes unnecessary indentation in Update.cpp.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/src/IR/Update.cpp

index abefb86..8e81c85 100644 (file)
@@ -31,10 +31,7 @@ void Update::bag(Bag *bag)
 {
   if (_bag)
   {
-    // TODO Remove unnecessary indentation
-    {
-      _bag->mutable_updates()->erase(this);
-    }
+    _bag->mutable_updates()->erase(this);
     _bag = nullptr;
   }
 
@@ -43,10 +40,7 @@ void Update::bag(Bag *bag)
   if (bag)
   {
     _bag = bag;
-    // TODO Remove unnecessary indentation
-    {
-      _bag->mutable_updates()->insert(this);
-    }
+    _bag->mutable_updates()->insert(this);
   }
 
   assert(_bag == bag);