diff options
author | 2016-05-11 14:24:39 +0000 | |
---|---|---|
committer | 2016-05-12 10:45:46 +0000 | |
commit | a708b62d313f098aedefb95a5d8e099a47d4b36f (patch) | |
tree | 62ee859c9f287cab9ca4fff2a8f3edc1906bfaf0 /src/main/java/com/google/devtools/build/lib | |
parent | 7f339de7feb071d790ecbca1c346244f5794a7e3 (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.java | 6 |
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; } }; |