[gnome-calendar/calendar-editor] style: remove unneeded curly brackets



commit f8d4c4ba06504b9887f7be80f29aff21939c890f
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sat May 16 18:01:14 2015 -0400

    style: remove unneeded curly brackets

 src/gcal-source-dialog.c |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 334fb20..bac0339 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -252,11 +252,9 @@ add_button_clicked (GtkWidget *button,
     {
       GList *l;
 
+      // Commit each new remote source
       for (l = priv->remote_sources; l != NULL; l = l->next)
-        {
-          // Commit each new remote source
-          gcal_manager_save_source (priv->manager, l->data);
-        }
+        gcal_manager_save_source (priv->manager, l->data);
 
       g_list_free (priv->remote_sources);
       priv->remote_sources = NULL;
@@ -1488,13 +1486,9 @@ check_activated_cb (GtkWidget  *check,
   source = g_object_get_data (G_OBJECT (row), "source");
 
   if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check)))
-    {
-      priv->remote_sources = g_list_append (priv->remote_sources, source);
-    }
+    priv->remote_sources = g_list_append (priv->remote_sources, source);
   else
-    {
-      priv->remote_sources = g_list_remove (priv->remote_sources, source);
-    }
+    priv->remote_sources = g_list_remove (priv->remote_sources, source);
 
   gtk_widget_set_sensitive (priv->add_button, g_list_length (priv->remote_sources) > 0);
 }


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