aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/IgnorePatterns.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-04-30 21:32:59 +0200
committerGitHub <noreply@github.com>2024-04-30 13:32:59 -0600
commit3feb3f81bfe848aa829e7c129bee3cd060c23c05 (patch)
treec247db8e30d1cc52bc6735d45d86eff8955ee7e9 /Emby.Server.Implementations/Library/IgnorePatterns.cs
parent5dc6bb4910cfdc7f40ad83d647172d743e6e0595 (diff)
More efficient array creation (#11468)
Diffstat (limited to 'Emby.Server.Implementations/Library/IgnorePatterns.cs')
-rw-r--r--Emby.Server.Implementations/Library/IgnorePatterns.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/IgnorePatterns.cs b/Emby.Server.Implementations/Library/IgnorePatterns.cs
index cf6fc1845..a2301c8ae 100644
--- a/Emby.Server.Implementations/Library/IgnorePatterns.cs
+++ b/Emby.Server.Implementations/Library/IgnorePatterns.cs
@@ -103,7 +103,7 @@ namespace Emby.Server.Implementations.Library
}
};
- private static readonly Glob[] _globs = _patterns.Select(p => Glob.Parse(p, _globOptions)).ToArray();
+ private static readonly Glob[] _globs = Array.ConvertAll(_patterns, p => Glob.Parse(p, _globOptions));
/// <summary>
/// Returns true if the supplied path should be ignored.