diff --git a/Assets/FishNet/Runtime/Editor/PrefabCollectionGenerator/Generator.cs b/Assets/FishNet/Runtime/Editor/PrefabCollectionGenerator/Generator.cs index 26487a0d..f1d98e7b 100644 --- a/Assets/FishNet/Runtime/Editor/PrefabCollectionGenerator/Generator.cs +++ b/Assets/FishNet/Runtime/Editor/PrefabCollectionGenerator/Generator.cs @@ -97,12 +97,6 @@ public SpecifiedFolder(string path, bool recursive) internal static string[] GetProjectFiles(string startingPath, string fileExtension, List excludedPaths, bool recursive) { - // Opportunity to exit early if there are no excluded paths. - if (excludedPaths.Count == 0) - { - string[] strResults = Directory.GetFiles(startingPath, $"*{fileExtension}", SearchOption.AllDirectories); - return strResults; - } // starting path is excluded. if (excludedPaths.Contains(startingPath)) return new string[0];