mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use string.EndsWith() method instead of Path.GetExtension()
This commit is contained in:
@@ -610,8 +610,7 @@ NextEntry:
|
||||
{
|
||||
if ("image" == entry.Type || "archive" == entry.Type)
|
||||
return false;
|
||||
var ext = Path.GetExtension (entry.Name);
|
||||
if (!string.IsNullOrEmpty (ext) && ext.Equals (".ogg", StringComparison.OrdinalIgnoreCase))
|
||||
if (entry.Name.EndsWith (".ogg", StringComparison.InvariantCultureIgnoreCase))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user