Skip to content

Commit

Permalink
remove unnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
martinscholz83 committed Sep 16, 2016
1 parent 1d2c97e commit a4119fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cake.Common/IO/FileCopier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static void CopyFiles(ICakeContext context, IEnumerable<FilePath> filePat
.Split(new string[] { "/" }, StringSplitOptions.RemoveEmptyEntries)
.ToList();

foreach (string pathSegment in separatedPath.AsEnumerable())
foreach (string pathSegment in separatedPath)
{
if (commonPath.Length == 0 && filePaths.All(str => str.ToString().StartsWith(pathSegment)))
{
Expand Down

0 comments on commit a4119fb

Please sign in to comment.