Merge "Adapt to new TestAccount methods"
diff --git a/BUILD b/BUILD
index 5b4896f..cfb4b60 100644
--- a/BUILD
+++ b/BUILD
@@ -44,6 +44,6 @@
"**/*.html",
"**/*.js",
]),
- plugin_name = "simple-submit-rules",
app = "plugin.html",
+ plugin_name = "simple-submit-rules",
)
diff --git a/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigTranslator.java b/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigTranslator.java
index 64e2aa9..9904b13 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigTranslator.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigTranslator.java
@@ -143,10 +143,7 @@
// labels to be able to modify it locally.
Map<String, LabelType> copiedLabelTypes = projectConfig.getLabelSections();
ProjectState projectState = projectCache.checkedGet(projectConfig.getName());
- projectState
- .getLabelTypes()
- .getLabelTypes()
- .stream()
+ projectState.getLabelTypes().getLabelTypes().stream()
.filter(l -> l.getName().equals(entry.getKey()))
.filter(l -> l.canOverride())
.forEach(l -> copiedLabelTypes.put(l.getName(), copyLabelType(l)));