[epiphany] Purge a couple more g_returns



commit 1ed6d2d34a5873d8b3ca163b87d014bb436bb5a8
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Sep 13 10:30:05 2017 -0500

    Purge a couple more g_returns

 embed/ephy-download.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 9d83dae..7140172 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -136,7 +136,7 @@ ephy_download_set_property (GObject      *object,
 const char *
 ephy_download_get_content_type (EphyDownload *download)
 {
-  g_return_val_if_fail (EPHY_IS_DOWNLOAD (download), NULL);
+  g_assert (EPHY_IS_DOWNLOAD (download));
 
   return download->content_type;
 }
@@ -359,7 +359,7 @@ ephy_download_get_action (EphyDownload *download)
 guint32
 ephy_download_get_start_time (EphyDownload *download)
 {
-  g_return_val_if_fail (EPHY_IS_DOWNLOAD (download), 0);
+  g_assert (EPHY_IS_DOWNLOAD (download));
 
   return download->start_time;
 }


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