Skip to content

Commit

Permalink
Remove comment as suggested by reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Jul 29, 2024
1 parent b449318 commit 61bb758
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/hudson/plugins/git/GitSCM.java
Original file line number Diff line number Diff line change
Expand Up @@ -1495,15 +1495,11 @@ private void computeChangeLog(GitClient git, Revision revToBuild, TaskListener l

if (!exclusion) {
FirstBuildChangelog firstBuildChangelog = getExtensions().get(FirstBuildChangelog.class);
if (firstBuildChangelog!=null&&firstBuildChangelog.isMakeChangelog()) {
if (firstBuildChangelog != null && firstBuildChangelog.isMakeChangelog()) {

Check warning on line 1498 in src/main/java/hudson/plugins/git/GitSCM.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 1498 is only partially covered, one branch is missing
changelog.to(out).max(1).execute();
executed = true;
listener.getLogger().println("First time build. Latest changes added to changelog.");
} else {
// this is the first time we are building this branch, so there's no base line
// to compare against.
// if we force the changelog, it'll contain all the changes in the repo, which
// is not what we want.
listener.getLogger().println("First time build. Skipping changelog.");
}
} else {
Expand Down

0 comments on commit 61bb758

Please sign in to comment.