File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -235,24 +235,17 @@ _eval(FilterXExpr *s)
235
235
return NULL ;
236
236
}
237
237
238
+ gboolean success = FALSE;
238
239
FilterXObject * obj_unwrapped = filterx_ref_unwrap_rw (obj );
239
240
if (filterx_object_is_type (obj_unwrapped , & FILTERX_TYPE_NAME (dict )))
240
- {
241
- gboolean success = _process_dict (self , obj_unwrapped );
242
- filterx_object_unref (obj );
243
- return success ? filterx_boolean_new (TRUE) : NULL ;
244
- }
245
-
246
- if (filterx_object_is_type (obj_unwrapped , & FILTERX_TYPE_NAME (list )))
247
- {
248
- gboolean success = _process_list (self , obj_unwrapped );
249
- filterx_object_unref (obj );
250
- return success ? filterx_boolean_new (TRUE) : NULL ;
251
- }
241
+ success = _process_dict (self , obj_unwrapped );
242
+ else if (filterx_object_is_type (obj_unwrapped , & FILTERX_TYPE_NAME (list )))
243
+ success = _process_list (self , obj_unwrapped );
244
+ else
245
+ filterx_eval_push_error ("Object must be dict or list. " FILTERX_FUNC_UNSET_EMPTIES_USAGE , s , obj );
252
246
253
- filterx_eval_push_error ("Object must be dict or list. " FILTERX_FUNC_UNSET_EMPTIES_USAGE , s , obj );
254
247
filterx_object_unref (obj );
255
- return NULL ;
248
+ return success ? filterx_boolean_new (TRUE) : NULL ;
256
249
}
257
250
258
251
static void
You can’t perform that action at this time.
0 commit comments