diff --git a/src/Cake.Unity/SeekersOfEditors/SeekerOfEditors.cs b/src/Cake.Unity/SeekersOfEditors/SeekerOfEditors.cs index 135233f..944847e 100644 --- a/src/Cake.Unity/SeekersOfEditors/SeekerOfEditors.cs +++ b/src/Cake.Unity/SeekersOfEditors/SeekerOfEditors.cs @@ -35,7 +35,7 @@ protected SeekerOfEditors(ICakeEnvironment environment, IGlobber globber, ICakeL public IReadOnlyCollection Seek() { log.Debug("Searching for available Unity Editors..."); - log.Debug("Search patterns: {0}", SearchPatterns); + log.Debug("Search patterns: [{0}]", string.Join(", ", SearchPatterns)); var candidates = GetCandidates(SearchPatterns); log.Debug("Found {0} candidates.", candidates.Count); @@ -50,11 +50,11 @@ from candidatePath in candidates return editors.ToList(); } - private List GetCandidates(string[] searchPatterns) => - searchPatterns.SelectMany(globber.GetFiles).ToList(); - protected abstract string[] SearchPatterns { get; } protected abstract UnityVersion DetermineVersion(FilePath editorPath); + + private List GetCandidates(string[] searchPatterns) => + searchPatterns.SelectMany(globber.GetFiles).ToList(); } }