mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Redundant as they are caught in finally
This commit is contained in:
parent
ed68f227ac
commit
7d416a90de
@ -262,7 +262,6 @@ public class Database {
|
|||||||
try {
|
try {
|
||||||
statement = connection.prepareStatement(sql);
|
statement = connection.prepareStatement(sql);
|
||||||
statement.executeUpdate();
|
statement.executeUpdate();
|
||||||
statement.close();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (SQLException ex) {
|
catch (SQLException ex) {
|
||||||
@ -296,7 +295,6 @@ public class Database {
|
|||||||
try {
|
try {
|
||||||
statement = connection.prepareStatement(sql);
|
statement = connection.prepareStatement(sql);
|
||||||
ret = statement.executeUpdate();
|
ret = statement.executeUpdate();
|
||||||
statement.close();
|
|
||||||
return ret;
|
return ret;
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
printErrors(ex);
|
printErrors(ex);
|
||||||
|
Loading…
Reference in New Issue
Block a user