Fix prefix/suffix priorities being ignored

This commit is contained in:
Luck 2016-10-11 19:31:26 +01:00
parent c5ce655cf6
commit ac57509a29
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -167,11 +167,13 @@ public class VaultUser {
Map.Entry<Integer, String> value = n.getPrefix();
if (value.getKey() > prefixPriority) {
existing.setPrefix(value.getValue());
prefixPriority = value.getKey();
}
} else {
Map.Entry<Integer, String> value = n.getSuffix();
if (value.getKey() > suffixPriority) {
existing.setSuffix(value.getValue());
suffixPriority = value.getKey();
}
}
}