[epiphany] session: code style improvements



commit 27bdf568a0d9ff7b73a81027b5519f69da7fc135
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Dec 14 13:51:39 2019 -0600

    session: code style improvements
    
    Remove unnecessary braces.

 src/ephy-session.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index bba7fad25..2c804a048 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -1018,18 +1018,15 @@ ephy_session_save (EphySession *session)
 
   g_assert (EPHY_IS_SESSION (session));
 
-  if (session->save_source_id) {
+  if (session->save_source_id)
     return;
-  }
 
-  if (session->dont_save) {
+  if (session->dont_save)
     return;
-  }
 
   policy = g_settings_get_enum (EPHY_SETTINGS_MAIN, EPHY_PREFS_RESTORE_SESSION_POLICY);
-  if (policy == EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER) {
+  if (policy == EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER)
     return;
-  }
 
   session->save_source_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT_IDLE, 1,
                                                         (GSourceFunc)ephy_session_save_idle_cb,


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