[gnome-builder] snippets: fix incorrect check in readycallback



commit cbea3b6c6248bc199794b5635b6d810372c4e74b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 31 16:36:51 2021 -0700

    snippets: fix incorrect check in readycallback
    
    This shouldn't have been changed, as object does not need to be related
    to the object to be useful as a snippet.

 src/plugins/snippets/snippets/gobject.snippets | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/snippets/snippets/gobject.snippets b/src/plugins/snippets/snippets/gobject.snippets
index 36e5bc30d..84c22fa71 100644
--- a/src/plugins/snippets/snippets/gobject.snippets
+++ b/src/plugins/snippets/snippets/gobject.snippets
@@ -600,7 +600,7 @@ snippet readycallback
 
                g_assert (G_IS_OBJECT (object));
                g_assert (G_IS_ASYNC_RESULT (result));
-               g_assert (g_task_is_valid (task, object));
+               g_assert (G_IS_TASK (task));
 
                g_task_return_boolean (task, TRUE);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]