]> source.dussan.org Git - gitblit.git/commitdiff
[findbugs] Remove unnecessary null check in RepositoryPage
authorJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 02:50:21 +0000 (22:50 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 03:08:07 +0000 (23:08 -0400)
src/main/java/com/gitblit/wicket/pages/RepositoryPage.java

index bed9fc3498ed57967acb2d8c2d189ac031676e6a..2b97bc1657cc9f6fb494268644221c48536181ad 100644 (file)
@@ -326,7 +326,7 @@ public abstract class RepositoryPage extends RootPage {
                }\r
 \r
                // fork controls\r
-               if (!allowForkControls() || user == null || !user.isAuthenticated) {\r
+               if (!allowForkControls() || !user.isAuthenticated) {\r
                        // must be logged-in to fork, hide all fork controls\r
                        add(new ExternalLink("forkLink", "").setVisible(false));\r
                        add(new ExternalLink("myForkLink", "").setVisible(false));\r