[epiphany] view-source-handler: another code style improvement
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] view-source-handler: another code style improvement
- Date: Tue, 13 Sep 2016 00:01:00 +0000 (UTC)
commit b7f302cf423f5ed1e68af6393ea236b29799e2b1
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Sep 12 18:38:05 2016 -0500
view-source-handler: another code style improvement
embed/ephy-view-source-handler.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-view-source-handler.c b/embed/ephy-view-source-handler.c
index 6f96296..b6dcac4 100644
--- a/embed/ephy-view-source-handler.c
+++ b/embed/ephy-view-source-handler.c
@@ -227,9 +227,8 @@ get_web_view_matching_uri (SoupURI *uri)
out:
g_list_free (embeds);
- if (!embed)
- return NULL;
- return WEBKIT_WEB_VIEW (ephy_embed_get_web_view (embed));
+
+ return embed ? WEBKIT_WEB_VIEW (ephy_embed_get_web_view (embed)) : NULL;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]