Simplify set initialization

This commit is contained in:
Paul Pacheco 2020-09-22 12:21:58 -05:00
parent 34fa002099
commit 3d331b4c61

View File

@ -163,8 +163,10 @@ static void OnCompilationFinished(string assemblyPath, CompilerMessage[] message
static HashSet<string> GetDependecyPaths(string assemblyPath) static HashSet<string> GetDependecyPaths(string assemblyPath)
{ {
// build directory list for later asm/symbol resolving using CompilationPipeline refs // build directory list for later asm/symbol resolving using CompilationPipeline refs
HashSet<string> dependencyPaths = new HashSet<string>(); HashSet<string> dependencyPaths = new HashSet<string>
dependencyPaths.Add(Path.GetDirectoryName(assemblyPath)); {
Path.GetDirectoryName(assemblyPath)
};
foreach (UnityAssembly unityAsm in CompilationPipeline.GetAssemblies()) foreach (UnityAssembly unityAsm in CompilationPipeline.GetAssemblies())
{ {
if (unityAsm.outputPath != assemblyPath) if (unityAsm.outputPath != assemblyPath)