Fix a couple of new layout inspections introduces in Rider 2021.3 EAP5

This commit is contained in:
Dean Herbert 2021-10-24 23:51:49 +09:00
parent dbb1bafb28
commit 99d01f2162
2 changed files with 4 additions and 4 deletions

View File

@ -151,8 +151,9 @@ protected override void CreateNestedHitObjects(CancellationToken cancellationTok
{ {
base.CreateNestedHitObjects(cancellationToken); base.CreateNestedHitObjects(cancellationToken);
foreach (var e in var sliderEvents = SliderEventGenerator.Generate(StartTime, SpanDuration, Velocity, TickDistance, Path.Distance, this.SpanCount(), LegacyLastTickOffset, cancellationToken);
SliderEventGenerator.Generate(StartTime, SpanDuration, Velocity, TickDistance, Path.Distance, this.SpanCount(), LegacyLastTickOffset, cancellationToken))
foreach (var e in sliderEvents)
{ {
switch (e.Type) switch (e.Type)
{ {

View File

@ -77,8 +77,7 @@ public void TestReadFile()
{ {
var reader = new ZipArchiveReader(osz); var reader = new ZipArchiveReader(osz);
using (var stream = new StreamReader( using (var stream = new StreamReader(reader.GetStream("Soleily - Renatus (Deif) [Platter].osu")))
reader.GetStream("Soleily - Renatus (Deif) [Platter].osu")))
{ {
Assert.AreEqual("osu file format v13", stream.ReadLine()?.Trim()); Assert.AreEqual("osu file format v13", stream.ReadLine()?.Trim());
} }