[geocode-glib] lib: Simplify geocode_forward_search_finish()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] lib: Simplify geocode_forward_search_finish()
- Date: Thu, 4 Jul 2013 14:40:46 +0000 (UTC)
commit d415ab07a79dbe675628768a4bdd3d7314713203
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jul 4 16:40:15 2013 +0200
lib: Simplify geocode_forward_search_finish()
geocode-glib/geocode-forward.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index c0a68fd..e6b5db5 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -482,21 +482,15 @@ geocode_forward_search_finish (GeocodeForward *forward,
GError **error)
{
GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (res);
- GList *ret;
g_return_val_if_fail (GEOCODE_IS_FORWARD (forward), NULL);
g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == geocode_forward_search_async);
- ret = NULL;
-
if (g_simple_async_result_propagate_error (simple, error))
- goto out;
-
- ret = g_simple_async_result_get_op_res_gpointer (simple);
+ return NULL;
-out:
- return ret;
+ return g_simple_async_result_get_op_res_gpointer (simple);
}
#define IS_EL(x) (g_str_equal (element_name, x))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]