Optimize SWCommandUtils.numberCompleter
Dieser Commit ist enthalten in:
Ursprung
a1125ae48f
Commit
2fb3f9a01b
@ -110,7 +110,6 @@ public class SWCommandUtils {
|
|||||||
if (varArgType != null) {
|
if (varArgType != null) {
|
||||||
length = args.length - parameters.length - subCommand.length + 1;
|
length = args.length - parameters.length - subCommand.length + 1;
|
||||||
arguments[arguments.length - 1] = Array.newInstance(varArgType, length);
|
arguments[arguments.length - 1] = Array.newInstance(varArgType, length);
|
||||||
|
|
||||||
if (index > args.length - 1) return arguments;
|
if (index > args.length - 1) return arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren