Simplify Region.hasType
Dieser Commit ist enthalten in:
Ursprung
89d1289f64
Commit
a56b399611
@ -201,14 +201,17 @@ public class Region {
|
||||
}
|
||||
|
||||
public boolean hasType(RegionType regionType) {
|
||||
if (prototype == null) {
|
||||
return false;
|
||||
}
|
||||
switch (regionType) {
|
||||
case BUILD:
|
||||
return prototype != null && prototype.getBuild() != null;
|
||||
return prototype.getBuild() != null;
|
||||
case TESTBLOCK:
|
||||
return prototype != null && prototype.getTestblock() != null;
|
||||
return prototype.getTestblock() != null;
|
||||
default:
|
||||
case NORMAL:
|
||||
return prototype != null;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren