Remove unnecessary hash map copy in o.e.b.Security

This commit removes an unnecessary copying of the tribe node group
settings in o.e.b.Security.
This commit is contained in:
Jason Tedor 2016-11-14 13:49:16 -05:00
parent a12f09317d
commit 9fb54f4ef8
1 changed files with 1 additions and 2 deletions

View File

@ -294,8 +294,7 @@ final class Security {
}
}
final Map<String, Settings> tribeNodesSettings = new HashMap<>(settings.getGroups("tribe", true));
for (final Settings tribeNodeSettings : tribeNodesSettings.values()) {
for (final Settings tribeNodeSettings : settings.getGroups("tribe", true).values()) {
// tribe nodes have HTTP disabled by default, so we check if HTTP is enabled before granting
if (NetworkModule.HTTP_ENABLED.exists(tribeNodeSettings) && NetworkModule.HTTP_ENABLED.get(tribeNodeSettings)) {
addSocketPermissionForHttp(policy, tribeNodeSettings);