[gnome-software: 12/16] gs-app-query: Fix precondition failure return value




commit 00d66aecb047ac3c41ff91754bc93579ad28912c
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed May 11 13:57:52 2022 +0100

    gs-app-query: Fix precondition failure return value
    
    It makes more sense to return `UNSET` than `FALSE`. Spotted by Milan
    Crha.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 lib/gs-app-query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-app-query.c b/lib/gs-app-query.c
index fe21b797d..f4dad5035 100644
--- a/lib/gs-app-query.c
+++ b/lib/gs-app-query.c
@@ -740,7 +740,7 @@ gs_app_query_get_released_since (GsAppQuery *self)
 GsAppQueryTristate
 gs_app_query_get_is_curated (GsAppQuery *self)
 {
-       g_return_val_if_fail (GS_IS_APP_QUERY (self), GS_APP_QUERY_TRISTATE_FALSE);
+       g_return_val_if_fail (GS_IS_APP_QUERY (self), GS_APP_QUERY_TRISTATE_UNSET);
 
        return self->is_curated;
 }


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