aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2016-05-11 14:24:39 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-05-12 10:45:46 +0000
commita708b62d313f098aedefb95a5d8e099a47d4b36f (patch)
tree62ee859c9f287cab9ca4fff2a8f3edc1906bfaf0 /src/main/java/com/google/devtools/build/lib
parent7f339de7feb071d790ecbca1c346244f5794a7e3 (diff)
Remove return value from ctx.file_action function
It was useless anyway. -- MOS_MIGRATED_REVID=122051899
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java
index ffe2fcae76..bf750445e4 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java
@@ -383,7 +383,7 @@ public class SkylarkRuleImplementationFunctions {
@SkylarkSignature(name = "file_action",
doc = "Creates a file write action.",
objectType = SkylarkRuleContext.class,
- returnType = FileWriteAction.class,
+ returnType = Runtime.NoneType.class,
mandatoryPositionals = {
@Param(name = "self", type = SkylarkRuleContext.class, doc = "this context"),
@Param(name = "output", type = Artifact.class, doc = "the output file"),
@@ -393,13 +393,13 @@ public class SkylarkRuleImplementationFunctions {
doc = "whether the output file should be executable (default is False)")})
private static final BuiltinFunction createFileWriteAction =
new BuiltinFunction("file_action") {
- public FileWriteAction invoke(SkylarkRuleContext ctx,
+ public Runtime.NoneType invoke(SkylarkRuleContext ctx,
Artifact output, String content, Boolean executable)
throws EvalException, ConversionException {
FileWriteAction action = new FileWriteAction(
ctx.getRuleContext().getActionOwner(), output, content, executable);
ctx.getRuleContext().registerAction(action);
- return action;
+ return Runtime.NONE;
}
};