[gjs/wip/coverage-2: 9/11] ff2



commit 08d314f5bf9be6d4a8c505041ef4169c238a4d13
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 15 17:59:37 2014 -0500

    ff2

 gjs/reflected-script.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gjs/reflected-script.cpp b/gjs/reflected-script.cpp
index 336145c..fa64c3c 100644
--- a/gjs/reflected-script.cpp
+++ b/gjs/reflected-script.cpp
@@ -194,10 +194,8 @@ gjs_reflected_script_get_expression_lines(GjsReflectedScript *script,
     ensure_script_reflected(script);
 
     g_assert(priv->all_expression_lines);
-    if (priv->all_expression_lines) {
-        *n = priv->all_expression_lines->len;
-        return (const unsigned int *) priv->all_expression_lines->data;
-    }
+    *n = priv->all_expression_lines->len;
+    return (const unsigned int *) priv->all_expression_lines->data;
 }
 
 typedef gboolean (*ConvertAndInsertJSVal) (GArray    *array,


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