[gnome-photos/wip/rishi/offset-controller-gauto] offset-controller: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/offset-controller-gauto] offset-controller: Style fixes
- Date: Mon, 22 Mar 2021 22:41:37 +0000 (UTC)
commit cd375b3a5a5103e5058f7de196206e20baa3afee
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 22 23:39:57 2021 +0100
offset-controller: Style fixes
https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/194
src/photos-offset-controller.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-offset-controller.c b/src/photos-offset-controller.c
index a35d10eb..5b47e098 100644
--- a/src/photos-offset-controller.c
+++ b/src/photos-offset-controller.c
@@ -123,13 +123,16 @@ photos_offset_controller_reset_count_query_executed (GObject *source_object, GAs
cursor = tracker_sparql_connection_query_finish (connection, res, &error);
if (error != NULL)
- return;
+ goto out;
}
tracker_sparql_cursor_next_async (cursor,
priv->cancellable,
photos_offset_controller_cursor_next,
self);
+
+ out:
+ return;
}
@@ -264,10 +267,13 @@ photos_offset_controller_increase_offset (PhotosOffsetController *self)
remaining = photos_offset_controller_get_remaining (self);
if (remaining <= 0)
- return;
+ goto out;
priv->offset += OFFSET_STEP;
g_signal_emit (self, signals[OFFSET_CHANGED], 0, priv->offset);
+
+ out:
+ return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]