mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 05:38:48 +08:00
use Enumerable.Empty() to return empty list.
This commit is contained in:
@@ -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 ('.'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user