mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-08 20:12:23 +00:00
removed redundant null check
Change-Id: Ifd325b8fc86c0de969c2d03812c633af9add1b86
This commit is contained in:
1 parent
18c777a99f
commit
aa8d6ea8a2
1 file changed
+2
-3
+2
-3
@@ -1652,9 +1652,8 @@ public class DomainObjectFactoryImpl implements DomainObjectFactory {
|
||||
result = null; // the competitor wasn't found
|
||||
dbObjectForUpdate = Optional.empty();
|
||||
} else if (boatId == null) {
|
||||
final Boat boat;
|
||||
if (competitor.hasBoat() && (boat=((CompetitorWithBoat) competitor).getBoat()) != null) {
|
||||
result = new RaceLogRegisterCompetitorEventImpl(createdAt, logicalTimePoint, author, id, passId, competitor, boat);
|
||||
if (competitor.hasBoat()) {
|
||||
result = new RaceLogRegisterCompetitorEventImpl(createdAt, logicalTimePoint, author, id, passId, competitor, ((CompetitorWithBoat) competitor).getBoat());
|
||||
} else {
|
||||
logger.warning("Bug2822: Competitor with ID "+competitorId+" already seems to have been migrated to one without boat."+
|
||||
" But the RaceLogRegisterCompetitorEventImpl event loaded does not specify one either. We'll try to find a boat...");
|
||||
|
||||
Reference in new issue
Block a user