sketchy override styles

This commit is contained in:
ntr committed 2023-08-04 14:29:28 +10:00
1 parent beeac0ee8d
commit a949f0ab05
6 files changed
+12 -13

No files matched your search

+3 -5
View File
@@ -55,12 +55,10 @@ public class Lap {
// 0:1:39
public override string ToString() {
return $"{TimeSpan.FromSeconds(TotalTime()):m\\:ss\\.fff}";
return $"{TimeSpan.FromSeconds(TotalTime):m\\:ss\\.fff}";
}
public double TotalTime() {
return Sectors.Sum(s => s.Seconds);
}
public double TotalTime => Sectors.Sum(s => s.Seconds);
}
@@ -126,6 +124,6 @@ static class LapStorageService {
public static Lap PB(string mapName) {
return lapsByMap[mapName].Laps
.MinBy(l => l.TotalTime());
.MinBy(l => l.TotalTime);
}
}