Split variable for readability

This commit is contained in:
Bartłomiej Dach 2021-01-16 23:24:28 +01:00
parent 1d7be6a604
commit bb0d289993

View File

@ -426,7 +426,8 @@ namespace osu.Game
{
var imports = tasks.Where(t => t.Path.EndsWith(ext, StringComparison.OrdinalIgnoreCase));
return fileImporters.FirstOrDefault(i => i.HandledExtensions.Contains(ext))?.Import(imports.ToArray()) ?? Task.CompletedTask;
var importer = fileImporters.FirstOrDefault(i => i.HandledExtensions.Contains(ext));
return importer?.Import(imports.ToArray()) ?? Task.CompletedTask;
}));
}