* Simplify return statement, removing local variable.
This commit is contained in:
parent
3e7c260787
commit
58e9431da1
1 changed files with 1 additions and 3 deletions
|
@ -104,9 +104,7 @@ public class FtpObject extends ScriptableObject {
|
|||
ftpclient = new FTPClient();
|
||||
ftpclient.connect(server);
|
||||
|
||||
boolean b = ftpclient.login(username, password);
|
||||
|
||||
return b;
|
||||
return ftpclient.login(username, password);
|
||||
} catch (Exception x) {
|
||||
return false;
|
||||
} catch (NoClassDefFoundError x) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue