cleanups double useless if condition on echo
@@ -243,7 +243,7 @@ public class OConsoleApplication {
}
if (commandLine != null) {
- if ((iBatchMode && isEchoEnabled()) || isEchoEnabled()) {
+ if (isEchoEnabled()) {
out.println();
out.print(getPrompt());
out.print(commandLine);
@@ -262,7 +262,6 @@ public class OConsoleApplication {
}
}
-// if (commandBuffer.length() == 0) {
if (commandBuffer.length() > 0) {
if (iBatchMode && isEchoEnabled()) {
out.println();
@@ -276,7 +275,6 @@ public class OConsoleApplication {
|| (status == RESULT.ERROR && !Boolean.parseBoolean(properties.get("ignoreErrors"))) && iBatchMode)
return false;
}
-// }
} finally {
commandStream.close();
}
