[gnome-builder] command-bar-item: remove redundant if
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] command-bar-item: remove redundant if
- Date: Sat, 27 Dec 2014 03:13:59 +0000 (UTC)
commit 1bc9fb9f530d3c6eff257e87121886dbf6ad5fde
Author: Fabiano Fidêncio <fidencio redhat com>
Date: Sat Dec 27 04:00:54 2014 +0100
command-bar-item: remove redundant if
g_clear_object() already checks for NULL
src/commands/gb-command-bar-item.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/commands/gb-command-bar-item.c b/src/commands/gb-command-bar-item.c
index 056e5f5..1676b85 100644
--- a/src/commands/gb-command-bar-item.c
+++ b/src/commands/gb-command-bar-item.c
@@ -83,8 +83,7 @@ gb_command_bar_item_set_result (GbCommandBarItem *item,
if (item->priv->result != result)
{
- if (item->priv->result)
- g_clear_object (&item->priv->result);
+ g_clear_object (&item->priv->result);
if (result)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]