mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Remove redundant try/catch loading api-version
This commit is contained in:
parent
81a2b53216
commit
59c4c0b7d4
1 changed files with 1 additions and 5 deletions
|
@ -1019,11 +1019,7 @@ public final class PluginDescriptionFile {
|
|||
}
|
||||
|
||||
if (map.get("api-version") != null) {
|
||||
try {
|
||||
apiVersion = map.get("api-version").toString();
|
||||
} catch (ClassCastException ex) {
|
||||
throw new InvalidDescriptionException(ex, "api-version is of wrong type");
|
||||
}
|
||||
apiVersion = map.get("api-version").toString();
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue