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(() =>
{
Task t = Task.Run(() => legacyExporter.ExportAsync(new RealmLiveUnmanaged<TestModel>(item)));
t.WaitSafely();
Task.Run(() => legacyExporter.ExportAsync(new RealmLiveUnmanaged<TestModel>(item))).WaitSafely();
});
Assert.That(storage.Exists($"exports/{expectedName}{legacyExporter.GetExtension()}"), Is.True);
}