From 45cc885ab17653a79adbd5f066c1d5391f1d8b74 Mon Sep 17 00:00:00 2001 From: Romeo Date: Fri, 6 Mar 2020 11:29:03 +0000 Subject: [PATCH] Fix assignment to variable --- dist/main.js | 2 +- src/files.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/main.js b/dist/main.js index 7594d034..fa401c50 100644 --- a/dist/main.js +++ b/dist/main.js @@ -22921,7 +22921,7 @@ const perPage = 100; async function changedFiles(github, repo, pr, count) { const files = []; - for (const page = 0; page * perPage < count; page++) { + for (let page = 0; page * perPage < count; page++) { const response = await github.pulls.listFiles({ ...repo, pull_number: pr, diff --git a/src/files.js b/src/files.js index ee1dc55b..f2b0b479 100644 --- a/src/files.js +++ b/src/files.js @@ -3,7 +3,7 @@ const perPage = 100 export async function changedFiles(github, repo, pr, count) { const files = [] - for (const page = 0; page * perPage < count; page++) { + for (let page = 0; page * perPage < count; page++) { const response = await github.pulls.listFiles({ ...repo, pull_number: pr,