diff --git a/action/dist/index.js b/action/dist/index.js index a7364b31..910b40e5 100644 --- a/action/dist/index.js +++ b/action/dist/index.js @@ -9800,10 +9800,8 @@ __webpack_require__.d(__webpack_exports__, { //Compute changed lines response.map(({data:repository}) => { //Check if data are available - if (!repository) + if (!Array.isArray(repository)) return - if (!repository.filter) - console.log(repository.filter, repository) //Extract author const [contributor] = repository.filter(({author}) => author.login === login) //Compute editions diff --git a/src/plugins/lines/index.mjs b/src/plugins/lines/index.mjs index 7973c427..5f11c0c9 100644 --- a/src/plugins/lines/index.mjs +++ b/src/plugins/lines/index.mjs @@ -23,10 +23,8 @@ //Compute changed lines response.map(({data:repository}) => { //Check if data are available - if (!repository) + if (!Array.isArray(repository)) return - if (!repository.filter) - console.log(repository.filter, repository) //Extract author const [contributor] = repository.filter(({author}) => author.login === login) //Compute editions