m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas
diff options
context:
space:
mode:
authorMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-29 21:38:27 +0100
committerMagdalena Grodzińska <mag.grodzinska@gmail.com>2020-01-29 21:38:27 +0100
commit8b41f1f1d5b9c5117115ec9e81e04988f17abd0a (patch)
treebd18afd008155bbf9a3a6fa126a82ba61e2d5664 /src/main/java/pl/edu/mimuw/cloudatlas
parentebad8e2dc7c84ee392d87dd5fbdec2d38727792c (diff)
One last small ident fix
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java
index a1fc7ab..280a11f 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/HierarchyConfig.java
@@ -131,9 +131,9 @@ public class HierarchyConfig {
}
private <T> ValueContact selectContactFromSet(Set<T> contacts) throws Exception {
- if (contacts.size() == 0) {
- return null;
- }
+ if (contacts.size() == 0) {
+ return null;
+ }
int i = random.nextInt(contacts.size());
for (T contact : contacts) {
if (i == 0) {