Skip to content

Commit 124d5ae

Browse files
committed
Correct replicated comment
1 parent f1318a1 commit 124d5ae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/scala/org/scijava/plugins/scripting/scala/ScalaAdaptedScriptEngine.scala

+6-6
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ class ScalaAdaptedScriptEngine(engine: ScriptEngine) extends AbstractScriptEngin
9898
// First try to get value from bindings
9999
var value = super.get(key)
100100

101-
// NB: Extracting values from Scala Script Engine are a little tricky.// NB: Extracting values from Scala Script Engine are a little tricky.
102-
// Values (variables) initialised or computed in the script are// Values (variables) initialised or computed in the script are
103-
// not added to the bindings of the CompiledScript AFAICT. Therefore// not added to the bindings of the CompiledScript AFAICT. Therefore
104-
// the only way to extract them is to evaluate the variable and// the only way to extract them is to evaluate the variable and
105-
// capture the return. If it evaluates to null or throws a// capture the return. If it evaluates to null or throws a
106-
// a ScriptException, we simply return null.// a ScriptException, we simply return null.
101+
// NB: Extracting values from Scala Script Engine are a little tricky.
102+
// Values (variables) initialised or computed in the script are
103+
// not added to the bindings of the CompiledScript AFAICT. Therefore
104+
// the only way to extract them is to evaluate the variable and
105+
// capture the return. If it evaluates to null or throws a
106+
// a ScriptException, we simply return null.
107107
if value == null then
108108
try
109109
value = evalInner(key, getContext)

0 commit comments

Comments
 (0)