style: spacing
This commit is contained in:
parent
32cfade9db
commit
a8b3a1d290
1 changed files with 4 additions and 2 deletions
|
@ -23,7 +23,9 @@ public class SQLStorageProvider implements StorageProvider {
|
||||||
public boolean init() {
|
public boolean init() {
|
||||||
try {
|
try {
|
||||||
final NickoConfiguration config = instance.getNickoConfig();
|
final NickoConfiguration config = instance.getNickoConfig();
|
||||||
connection = DriverManager.getConnection("jdbc:mariadb://" + config.getSQLAddress(), config.getSQLUsername(), config.getSQLPassword());
|
connection = DriverManager.getConnection("jdbc:mariadb://" + config.getSQLAddress(),
|
||||||
|
config.getSQLUsername(),
|
||||||
|
config.getSQLPassword());
|
||||||
final boolean initialized = connection != null && !connection.isClosed();
|
final boolean initialized = connection != null && !connection.isClosed();
|
||||||
|
|
||||||
if (initialized) {
|
if (initialized) {
|
||||||
|
@ -46,7 +48,7 @@ public class SQLStorageProvider implements StorageProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean close() {
|
public boolean close() {
|
||||||
if(connection == null) { return true; }
|
if (connection == null) { return true; }
|
||||||
try {
|
try {
|
||||||
connection.close();
|
connection.close();
|
||||||
return connection.isClosed();
|
return connection.isClosed();
|
||||||
|
|
Loading…
Reference in a new issue