Remove unnecessary local variable

This commit is contained in:
Dean Herbert 2023-05-05 16:31:48 +09:00
parent 6a4933a31c
commit f2dd457b3d
1 changed files with 1 additions and 2 deletions

View File

@ -94,8 +94,7 @@ private void exportItemAndAssert(TestModel item, string expectedName)
{ {
Assert.DoesNotThrow(() => Assert.DoesNotThrow(() =>
{ {
Task t = Task.Run(() => legacyExporter.ExportAsync(new RealmLiveUnmanaged<TestModel>(item))); Task.Run(() => legacyExporter.ExportAsync(new RealmLiveUnmanaged<TestModel>(item))).WaitSafely();
t.WaitSafely();
}); });
Assert.That(storage.Exists($"exports/{expectedName}{legacyExporter.GetExtension()}"), Is.True); Assert.That(storage.Exists($"exports/{expectedName}{legacyExporter.GetExtension()}"), Is.True);
} }