[Smell] Useless null check

- Expression here is now always true and so can be removed
This commit is contained in:
Rsl1122 2018-11-11 20:19:55 +02:00
parent 6b3d07dac1
commit e87a22ce59

View File

@ -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);
}
}