Commit dc4faa0
committed
ScriptInfo: append return value if no outputs
We want the return value to be an easy way to return a single, untyped
(Object) output. This is quite useful for the "lazy" (I mean "elegant")
script writer. But for those consuming scripts, it is annoying to always
have to deal with this extra "result" output.
As a compromise, let's only append the "result" output if:
A) no other outputs were declared; and
B) "result" was not declared as an input either.1 parent 2ba0039 commit dc4faa0
File tree
2 files changed
+8
-7
lines changed- src
- main/java/org/scijava/script
- test/java/org/scijava/script
2 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
417 | 422 | | |
418 | 423 | | |
419 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 173 | | |
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
183 | 179 | | |
184 | | - | |
| 180 | + | |
185 | 181 | | |
186 | 182 | | |
187 | 183 | | |
| |||
0 commit comments