Skip to content

Commit 150db79

Browse files
committed
Drop this call
in some cases it may "late" create Terminal
1 parent 9cbb9fb commit 150db79

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ public final int invoke(InvokerRequest invokerRequest) {
138138
} catch (Exception e) {
139139
// other exceptions (including InvokerException but sans Exit, see above): we need to inform user
140140
throw handleException(context, e);
141-
} finally {
142-
if (context.terminal != null) {
143-
context.terminal.writer().flush();
144-
}
145141
}
146142
} finally {
147143
Thread.currentThread().setContextClassLoader(oldCL);

0 commit comments

Comments
 (0)