Skip to content

Commit

Permalink
Fixed SearchPatterns debug log output
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Aug 22, 2019
1 parent 491015e commit 1e81913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Cake.Unity/SeekersOfEditors/SeekerOfEditors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected SeekerOfEditors(ICakeEnvironment environment, IGlobber globber, ICakeL
public IReadOnlyCollection<UnityEditorDescriptor> 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);
Expand All @@ -50,11 +50,11 @@ from candidatePath in candidates
return editors.ToList();
}

private List<FilePath> GetCandidates(string[] searchPatterns) =>
searchPatterns.SelectMany(globber.GetFiles).ToList();

protected abstract string[] SearchPatterns { get; }

protected abstract UnityVersion DetermineVersion(FilePath editorPath);

private List<FilePath> GetCandidates(string[] searchPatterns) =>
searchPatterns.SelectMany(globber.GetFiles).ToList();
}
}

0 comments on commit 1e81913

Please sign in to comment.