mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
use Enumerable.Empty() to return empty list.
This commit is contained in:
parent
b0f621e8ab
commit
ad1b51b24c
@ -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 ('.'));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user