Skip to content

Commit 643f607

Browse files
authored
(GH-368) Fix log message (#369)
1 parent 24c27e6 commit 643f607

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/Cake.AzureDevOps/Repos/PullRequest/AzureDevOpsPullRequest.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,22 +513,26 @@ public IEnumerable<FilePath> GetModifiedFiles()
513513
.GetAwaiter()
514514
.GetResult();
515515

516-
this.log.Verbose(
517-
"Found {0} changed file(s) in the pull request",
518-
commitDiffs.Changes.Count());
519-
520516
if (!commitDiffs.ChangeCounts.Any())
521517
{
518+
this.log.Verbose("Found 0 changed files in the pull request");
519+
522520
return new List<FilePath>();
523521
}
524522

525-
return
523+
var changes =
526524
from change in commitDiffs.Changes
527525
where
528526
change != null &&
529527
!change.Item.IsFolder
530528
select
531529
new FilePath(change.Item.Path.TrimStart('/'));
530+
531+
this.log.Verbose(
532+
"Found {0} changed file(s) in the pull request",
533+
changes.Count());
534+
535+
return changes;
532536
}
533537
}
534538

0 commit comments

Comments
 (0)