* 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 = new FTPClient();
|
||||||
ftpclient.connect(server);
|
ftpclient.connect(server);
|
||||||
|
|
||||||
boolean b = ftpclient.login(username, password);
|
return ftpclient.login(username, password);
|
||||||
|
|
||||||
return b;
|
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
return false;
|
return false;
|
||||||
} catch (NoClassDefFoundError x) {
|
} catch (NoClassDefFoundError x) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue