[gnome-photos/wip/rishi/thumbnailer: 6/15] base-item: Style fix
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/thumbnailer: 6/15] base-item: Style fix
- Date: Wed, 22 Feb 2017 19:20:23 +0000 (UTC)
commit ea104a4220a7ea1779689906739de2fb6ed0c8b8
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Feb 22 16:37:38 2017 +0100
base-item: Style fix
src/photos-base-item.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index dfff975..28319c9 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -441,20 +441,18 @@ photos_base_item_create_thumbnail_in_thread_func (gpointer data, gpointer user_d
PhotosBaseItem *self;
GCancellable *cancellable;
GError *error;
- gboolean result;
self = PHOTOS_BASE_ITEM (g_task_get_source_object (task));
cancellable = g_task_get_cancellable (task);
error = NULL;
- result = PHOTOS_BASE_ITEM_GET_CLASS (self)->create_thumbnail (self, cancellable, &error);
- if (error != NULL)
+ if (!PHOTOS_BASE_ITEM_GET_CLASS (self)->create_thumbnail (self, cancellable, &error))
{
g_task_return_error (task, error);
goto out;
}
- g_task_return_boolean (task, result);
+ g_task_return_boolean (task, TRUE);
out:
g_object_unref (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]