mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-08-26 22:49:51 +02:00
[Smell] Useless null check
- Expression here is now always true and so can be removed
This commit is contained in:
parent
6b3d07dac1
commit
e87a22ce59
|
@ -108,7 +108,7 @@ public abstract class DBSystem implements SubSystem {
|
||||||
} catch (DBInitException e) {
|
} catch (DBInitException e) {
|
||||||
Throwable cause = e.getCause();
|
Throwable cause = e.getCause();
|
||||||
String message = cause == null ? e.getMessage() : cause.getMessage();
|
String message = cause == null ? e.getMessage() : cause.getMessage();
|
||||||
throw new EnableException((db != null ? db.getType().getName() : "Database") + " init failure: " + message, cause);
|
throw new EnableException(db.getType().getName() + " init failure: " + message, cause);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user