Skip to content

Commit ec7e19e

Browse files
committed
Revert result var initialization
1 parent 7d1054d commit ec7e19e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/notes/notes.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,6 @@ func (g *Gatherer) notesForCommit(commit *gogithub.RepositoryCommit) (*Result, e
832832
return nil, err
833833
}
834834

835-
var res *Result
836835
for _, pr := range prs {
837836
prBody := pr.GetBody()
838837

@@ -874,7 +873,7 @@ func (g *Gatherer) notesForCommit(commit *gogithub.RepositoryCommit) (*Result, e
874873
}
875874
}
876875

877-
res = &Result{commit: commit, pullRequest: pr}
876+
res := &Result{commit: commit, pullRequest: pr}
878877
logrus.Infof("PR #%d seems to contain a release note", pr.GetNumber())
879878
// Do not test further PRs for this commit as soon as one PR matched
880879
return res, nil

0 commit comments

Comments
 (0)