From 253957ab46423071969f5faca2174934416b1cc4 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 17 Apr 2014 22:50:21 -0400 Subject: [PATCH] [findbugs] Remove unnecessary null check in RepositoryPage --- src/main/java/com/gitblit/wicket/pages/RepositoryPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java index bed9fc34..2b97bc16 100644 --- a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java @@ -326,7 +326,7 @@ public abstract class RepositoryPage extends RootPage { } // fork controls - if (!allowForkControls() || user == null || !user.isAuthenticated) { + if (!allowForkControls() || !user.isAuthenticated) { // must be logged-in to fork, hide all fork controls add(new ExternalLink("forkLink", "").setVisible(false)); add(new ExternalLink("myForkLink", "").setVisible(false)); -- 2.39.5