From ad1b51b24c23445d0f84be71ba38edd1bad2cb65 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 25 Aug 2014 15:05:30 +0400 Subject: [PATCH] use Enumerable.Empty() to return empty list. --- GameRes/GameRes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameRes/GameRes.cs b/GameRes/GameRes.cs index 04db1c9e..fa5264d4 100644 --- a/GameRes/GameRes.cs +++ b/GameRes/GameRes.cs @@ -326,7 +326,7 @@ namespace GameRes { string ext = Path.GetExtension (filename); if (string.IsNullOrEmpty (ext)) - return new IResource[0]; + return Enumerable.Empty(); return LookupExtension (ext.TrimStart ('.')); }