[gjs: 6/11] arg: Remove double assignment of variable
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 6/11] arg: Remove double assignment of variable
- Date: Fri, 8 Oct 2021 22:02:27 +0000 (UTC)
commit b6956fe53cec8c623bccb094e6cedcdab2faa004
Author: Philip Chimento <philip chimento gmail com>
Date: Tue Sep 28 23:15:28 2021 -0700
arg: Remove double assignment of variable
This was probably a rebase error. The first assignment has no effect
because it is immediately overwritten.
gi/arg.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gi/arg.cpp b/gi/arg.cpp
index 49f36d76..195e060a 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -2755,9 +2755,7 @@ gjs_value_from_g_argument (JSContext *context,
} else if (g_type_info_get_array_type(type_info) == GI_ARRAY_TYPE_C) {
if (g_type_info_is_zero_terminated(type_info)) {
GjsAutoBaseInfo param_info =
- g_type_info_get_interface(type_info);
-
- param_info = g_type_info_get_param_type(type_info, 0);
+ g_type_info_get_param_type(type_info, 0);
g_assert(param_info != nullptr);
return gjs_array_from_zero_terminated_c_array(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]