mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Simplify logic
This commit is contained in:
parent
4534154894
commit
6f2e4c0cf3
@ -123,11 +123,7 @@ public class YAMLNode {
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object getProperty(String path) {
|
||||
if (!path.contains(".")) {
|
||||
Object val = root.get(path);
|
||||
if (val == null) {
|
||||
return null;
|
||||
}
|
||||
return val;
|
||||
return root.get(path);
|
||||
}
|
||||
|
||||
String[] parts = path.split("\\.");
|
||||
|
Loading…
Reference in New Issue
Block a user