mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 01:27:42 +01: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) {
|
||||
Throwable cause = e.getCause();
|
||||
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