Skip to content

Commit c75c31f

Browse files
committed
ScriptModule: tweak style
1 parent e3453f2 commit c75c31f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ public void run() {
158158
if (error != null) {
159159
scriptContext.setErrorWriter(error);
160160
errorPrinter = new PrintWriter(error);
161-
} else {
161+
}
162+
else {
162163
errorPrinter = null;
163164
}
164165

@@ -179,11 +180,8 @@ public void run() {
179180
while (e instanceof ScriptException && e.getCause() != null) {
180181
e = e.getCause();
181182
}
182-
if (error == null) {
183-
log.error(e);
184-
} else {
185-
e.printStackTrace(errorPrinter);
186-
}
183+
if (error == null) log.error(e);
184+
else e.printStackTrace(errorPrinter);
187185
}
188186

189187
// populate output values

0 commit comments

Comments
 (0)