[gnome-todo] list-view: simplify code



commit 6d561234661a1a4517e64444ad344b3e4b73f304
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jun 24 22:12:11 2015 -0300

    list-view: simplify code

 src/gtd-list-view.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gtd-list-view.c b/src/gtd-list-view.c
index 4c80658..2636580 100644
--- a/src/gtd-list-view.c
+++ b/src/gtd-list-view.c
@@ -396,8 +396,7 @@ gtd_list_view__remove_task (GtdListView *view,
         }
     }
 
-  if (children)
-    g_list_free (children);
+  g_list_free (children);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]