Commit 8e2c6fbd authored by Alexander's avatar Alexander
Browse files

Remove redundant empty check

See description of pollFirst:
Retrieves and removes the first element of this list,
or returns {@code null} if this list is empty.
parent 694f87a3
......@@ -159,9 +159,6 @@ public abstract class TestBase {
* @return a string containing the output
protected String popProgramOutput() {
//Shouldn't ever happen, but if it does, we effectively have no output
if (Terminal.OUT_TEST.isEmpty())
return null;
StringBuilder res = Terminal.OUT_TEST.pollFirst();
if (res == null)
return null;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment