GitWebType: remove redundant 'else' block
The 'type' is set to null when name is 'disabled' and in all other cases that don't match the previous conditions. This results in a warning from Findbugs: "This method uses the same code to implement two branches of a conditional branch." Remove the redundant condition. Change-Id: I042dc02ef05e9ce39fdbe3ea8553d9c42ef3e521
This commit is contained in:
@@ -47,10 +47,6 @@ public class GitWebType {
|
||||
type = new GitWebType();
|
||||
// The custom name is not defined, let's keep the old style of using GitWeb
|
||||
type.setLinkName("gitweb");
|
||||
|
||||
} else if (name.equalsIgnoreCase("disabled")) {
|
||||
type = null;
|
||||
|
||||
} else {
|
||||
type = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user