[gnome-todo] style fixes



commit 3f63e0862912b74bfd196b375ababa699bdf563c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Jun 27 11:45:11 2015 -0300

    style fixes

 src/gtd-list-view.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gtd-list-view.c b/src/gtd-list-view.c
index dee0e9e..7454555 100644
--- a/src/gtd-list-view.c
+++ b/src/gtd-list-view.c
@@ -1066,8 +1066,7 @@ gtd_list_view_set_show_completed (GtdListView *view,
               gtd_task_row_reveal (GTD_TASK_ROW (new_row));
             }
 
-            if (list_of_tasks)
-              g_list_free (list_of_tasks);
+            g_list_free (list_of_tasks);
         }
       else
         {
@@ -1085,8 +1084,7 @@ gtd_list_view_set_show_completed (GtdListView *view,
                 }
             }
 
-          if (children)
-              g_list_free (children);
+          g_list_free (children);
         }
 
       g_object_notify (G_OBJECT (view), "show-completed");


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