diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java b/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java index ad995fc223b849..d8b77a06fd8af9 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java @@ -85,7 +85,6 @@ public Artifact build(RuleContext ruleContext) { FilesToRunProvider oneVersionTool = javaToolchain.getOneVersionBinary(); Artifact oneVersionAllowlist = javaToolchain.getOneVersionAllowlist(); if (oneVersionTool == null || oneVersionAllowlist == null) { - addRuleErrorForMissingArtifacts(ruleContext, javaToolchain); return outputArtifact; }