[gjs] foreign: Cleanup the style slightly
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] foreign: Cleanup the style slightly
- Date: Wed, 17 Jun 2015 23:55:48 +0000 (UTC)
commit ee242f6f53157566a731c0a5b9a4c6474464d709
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jun 16 17:29:59 2015 -0700
foreign: Cleanup the style slightly
gi/foreign.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gi/foreign.cpp b/gi/foreign.cpp
index efbadfd..7e2710a 100644
--- a/gi/foreign.cpp
+++ b/gi/foreign.cpp
@@ -69,9 +69,8 @@ gjs_foreign_load_foreign_module(JSContext *context,
if (strcmp(gi_namespace, foreign_modules[i].gi_namespace) != 0)
continue;
- if (foreign_modules[i].loaded) {
+ if (foreign_modules[i].loaded)
return JS_TRUE;
- }
// FIXME: Find a way to check if a module is imported
// and only execute this statement if isn't
@@ -86,9 +85,10 @@ gjs_foreign_load_foreign_module(JSContext *context,
}
g_free(script);
foreign_modules[i].loaded = TRUE;
+ return JS_TRUE;
}
- return JS_TRUE;
+ return JS_FALSE;
}
JSBool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]