Skip to content

Commit

Permalink
Don't fail validation for externs that return js content
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 683729028
  • Loading branch information
jobi authored and copybara-github committed Oct 8, 2024
1 parent f611964 commit f723d88
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ private static boolean typesAreCompatible(
&& templateType.getParameters().stream().noneMatch(p -> p.isRequired()))
|| (javaType == PartialSoyTemplate.class
&& templateType.getParameters().stream().anyMatch(p -> p.isRequired()));
case JS:
return javaType == SanitizedContent.class;
default:
return false;
}
Expand Down

0 comments on commit f723d88

Please sign in to comment.