peter_backlund 18 лет назад
Родитель
Сommit
d4e242e1fa
1 измененных файлов: 0 добавлений и 7 удалений
  1. 0
    7
      dddsample/src/main/java/se/citerus/dddsample/domain/Cargo.java

+ 0
- 7
dddsample/src/main/java/se/citerus/dddsample/domain/Cargo.java Просмотреть файл

@@ -69,13 +69,6 @@ public class Cargo {
69 69
    */
70 70
   public Location lastKnownLocation() {
71 71
     HandlingEvent lastEvent = deliveryHistory.lastEvent();
72
-    
73
-    if (lastEvent == null) {
74
-      return Location.UNKNOWN;
75
-    }
76
-    
77
-    
78
-    
79 72
     if (lastEvent != null) {
80 73
       return lastEvent.location();
81 74
     } else {