[epiphany/mcatanzaro/is-web-application: 1/2] web-extension: code style improvement



commit 6e991ccc710edc74d866dffe0efed1b2191138e5
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Mar 20 15:39:37 2019 -0500

    web-extension: code style improvement
    
    No parameters -> no need to pass any further arguments here

 embed/web-extension/ephy-web-extension.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 9f6ab15eb..996e5b17e 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -751,8 +751,7 @@ window_object_cleared_cb (WebKitScriptWorld *world,
   js_function = jsc_value_new_function (js_context,
                                         "isWebApplication",
                                         G_CALLBACK (ephy_profile_dir_is_web_application), NULL, NULL,
-                                        G_TYPE_BOOLEAN, 0,
-                                        G_TYPE_NONE);
+                                        G_TYPE_BOOLEAN, 0);
   jsc_value_object_set_property (js_ephy, "isWebApplication", js_function);
   g_clear_object (&js_function);
 


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