Skip to content

Commit

Permalink
More concise
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jan 22, 2021
1 parent 2bb6131 commit 98190a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/plugin/lib/milestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ async function getIssuesByMilestone( octokit, owner, repo, milestone, state ) {
*/
const releases = octokit.paginate.iterator( releaseOptions );

for await ( const r of releases ) {
const releasesPage = r.data;
latestReleaseInSeries = releasesPage.find( ( release ) =>
for await ( const releasesPage of releases ) {
latestReleaseInSeries = releasesPage.data.find( ( release ) =>
release.name.startsWith( series )
);

Expand Down

0 comments on commit 98190a3

Please sign in to comment.