mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-06 03:23:07 +02:00
Cleanup: SegmentStatisticUpdater is always initialized.
This commit is contained in:
@@ -23,7 +23,7 @@ public record RecordingData(Track track, TrackPoint latestTrackPoint, SensorData
|
||||
@NonNull
|
||||
public Statistics getStatisticsTrack() {
|
||||
if (track == null) {
|
||||
return new SegmentStatisticUpdater().getStatistics();
|
||||
return Statistics.DEFAULT; //TODO Refactor code that this is not necessary.
|
||||
}
|
||||
|
||||
return track.getStatistics();
|
||||
|
||||
Reference in New Issue
Block a user