Skip to content

Commit cf8aaee

Browse files
committed
ScriptModule: do not resolve outputs
The module item resolution API is for inputs only. It makes no sense to resolve the outputs here. (Actually, we are about to change that API to allow resolution of outputs as well... but it will still not make sense to do so here in the ScriptModule.)
1 parent ae5f1cf commit cf8aaee

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/main/java/org/scijava/script/ScriptModule.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ public void run() {
190190
final ScriptLanguage language = getLanguage();
191191
for (final ModuleItem<?> item : getInfo().outputs()) {
192192
final String name = item.getName();
193-
if (isResolved(name)) continue;
194193
final Object value;
195194
if (RETURN_VALUE.equals(name) && getInfo().isReturnValueAppended()) {
196195
// NB: This is the special implicit return value output!
@@ -200,7 +199,6 @@ public void run() {
200199
final Object decoded = language.decode(value);
201200
final Object typed = conversionService.convert(decoded, item.getType());
202201
setOutput(name, typed);
203-
setResolved(name, true);
204202
}
205203

206204
// flush output and error streams

0 commit comments

Comments
 (0)