Remove redundant null check in WorthConfig
The revised version of WorthConfig.java removes a redundant check for null material. This null check was duplicated due to a merge.
This commit is contained in:
parent
09cfc91dc0
commit
dc4b618a80
|
|
@ -85,10 +85,6 @@ public class WorthConfig extends AbstractConfig {
|
||||||
Logger.warning("Invalid material % in trade worth", key);
|
Logger.warning("Invalid material % in trade worth", key);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (material == null) {
|
|
||||||
Logger.warning("Invalid material % in trade worth", key);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
map.put(material, new Price(Utilities.round(worth.getDouble(key), 2), material));
|
map.put(material, new Price(Utilities.round(worth.getDouble(key), 2), material));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user