We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 462a414 commit 2403af2Copy full SHA for 2403af2
2 files changed
chart/mai/MaiChart.cs
@@ -41,7 +41,7 @@ public override decimal StartBpm {
41
}
42
43
public override decimal StartTime => (decimal)FirstNoteTime.Seconds;
44
- public override decimal EndTime => (decimal)ToSecond(Notes.Select(x=>x.EndTime).Max());
+ public override decimal EndTime => (decimal)ToSecond(Notes.Max(x=>x.EndTime));
45
public override int TotalNotes => Statistics.Total;
46
47
/**
chart/mai/Note.cs
@@ -28,7 +28,7 @@ public virtual int Key
28
get => _key;
29
set
30
{
31
- if (value < 1 || value > 8) throw new ArgumentException(string.Format(Locale.InvalidKey, value));
+ if (value is < 1 or > 8) throw new ArgumentException(string.Format(Locale.InvalidKey, value));
32
_key = value;
33
34
0 commit comments