[epiphany] session: More code style improvements



commit 839729be777293a17c4a52d75763ee581170390f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Oct 17 06:59:32 2016 -0500

    session: More code style improvements

 src/ephy-session.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index c51ab73..08f406a 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -699,28 +699,33 @@ write_tab (xmlTextWriterPtr writer,
   int ret;
 
   ret = xmlTextWriterStartElement (writer, (xmlChar *)"embed");
-  if (ret < 0) return ret;
+  if (ret < 0)
+    return ret;
 
   ret = xmlTextWriterWriteAttribute (writer, (xmlChar *)"url",
                                      (const xmlChar *)tab->url);
-  if (ret < 0) return ret;
+  if (ret < 0)
+    return ret;
 
   ret = xmlTextWriterWriteAttribute (writer, (xmlChar *)"title",
                                      (const xmlChar *)tab->title);
-  if (ret < 0) return ret;
+  if (ret < 0)
+    return ret;
 
   if (tab->loading) {
     ret = xmlTextWriterWriteAttribute (writer,
                                        (const xmlChar *)"loading",
                                        (const xmlChar *)"true");
-    if (ret < 0) return ret;
+    if (ret < 0)
+      return ret;
   }
 
   if (tab->crashed) {
     ret = xmlTextWriterWriteAttribute (writer,
                                        (const xmlChar *)"crashed",
                                        (const xmlChar *)"true");
-    if (ret < 0) return ret;
+    if (ret < 0)
+      return ret;
   }
 
   if (tab->state) {


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