[gitg] No need to check for repository not being null



commit 3a9d026f9530072b2c94c30fe0071b2ba599e364
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jul 1 09:58:05 2013 +0200

    No need to check for repository not being null

 gitg/history/gitg-history.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gitg/history/gitg-history.vala b/gitg/history/gitg-history.vala
index a3fb62b..7663ef8 100644
--- a/gitg/history/gitg-history.vala
+++ b/gitg/history/gitg-history.vala
@@ -180,7 +180,7 @@ namespace GitgHistory
 
                public bool is_default_for(string action)
                {
-                       return application.repository != null && (action == "" || action == "history");
+                       return (action == "" || action == "history");
                }
 
                private void on_ref_activated(Navigation n, Gitg.Ref? r)


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