Fixed builtins proto. Callable field was not set for functions with no parameter.
RELNOTES: None
@@ -73,8 +73,6 @@ public class ApiExporter {
Value.Builder field = Value.newBuilder();
field.setName(meth.getName());
field.setDoc(meth.getDocumentation());
- // TODO(andreeabican): Add type string.
- if (!meth.getParams().isEmpty()) {
Callable.Builder callable = Callable.newBuilder();
for (SkylarkParamDoc par : meth.getParams()) {
Param.Builder param = Param.newBuilder();
@@ -85,7 +83,6 @@ public class ApiExporter {
}
callable.setReturnType(meth.getReturnType());
field.setCallable(callable);
- }
return field;
}
