Avoid "if false return false".

But really, these methods should throw an Exception if the key is no good.
Not just return false, which nobody is probably checking.
This commit is contained in:
Ray J. Greenwell
2012-09-14 11:16:50 -07:00
parent 6cfc0890c6
commit 776db7fe26
@@ -167,7 +167,7 @@ public class PresentsConnectionManager extends ConnectionManager
*/
public boolean setPrivateKey (String key)
{
return key == null ? false : setPrivateKey(SecureUtil.stringToRSAPrivateKey(key));
return (key != null) && setPrivateKey(SecureUtil.stringToRSAPrivateKey(key));
}
/**