Return boolean immediately

(Olof-Joachim Frahm)
parent 7ca6f3a9
......@@ -125,7 +125,7 @@ public class SlimeInputStream extends Stream
@Override
protected boolean _charReady()
{
return offset < length ? true : false;
return offset < length;
}
......
......@@ -338,7 +338,7 @@ public class StructureObject extends LispObject
{
try
{
return slots[index] != NIL ? true : false;
return slots[index] != NIL;
}
catch (ArrayIndexOutOfBoundsException e)
{
......
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