use Enumerable.Empty() to return empty list.

This commit is contained in:
morkt 2014-08-25 15:05:30 +04:00
parent b0f621e8ab
commit ad1b51b24c

View File

@ -326,7 +326,7 @@ namespace GameRes
{
string ext = Path.GetExtension (filename);
if (string.IsNullOrEmpty (ext))
return new IResource[0];
return Enumerable.Empty<IResource>();
return LookupExtension (ext.TrimStart ('.'));
}