Governance: Deep Scan bugs fixed

This commit is contained in:
Luis Fernando Molina committed 2021-08-09 11:53:15 +02:00
1 parent 0bd721710d
commit 6a5bd747af
2 files changed
+11 -5

No files matched your search

+3 -3
View File
@@ -107,8 +107,8 @@ exports.newGithubServer = function newGithubServer() {
lastPage = true
}
for (let i = 0; i < filesChanged.length; i++) {
let listItem = filesChanged[i]
for (let i = 0; i < listResponse.data.length; i++) {
let listItem = listResponse.data[i]
let githubUsername
switch (endpoint) {
case 'activity': {
@@ -237,7 +237,7 @@ exports.newGithubServer = function newGithubServer() {
page: page
});
if (filesChanged.length < 100) {
if (listResponse.data.length < 100) {
lastPage = true
}
console.log('[INFO] Github Server -> mergeGithubPullRequests -> doGithub -> getPrList -> Receiving Page = ' + page)
+8 -2
View File
@@ -13,7 +13,10 @@ exports.newFoundationsUtilitiesPlugins = function () {
let path = global.env.PATH_TO_PROJECTS + '/' + project + '/Plugins/' + folder
CL.nodeModules.fs.readdir(path, (err, files) => {
if (err) { reject() }
if (err) {
reject()
return
}
if (files === undefined) {
files = []
}
@@ -33,7 +36,10 @@ exports.newFoundationsUtilitiesPlugins = function () {
CL.nodeModules.fs.readFile(path, onFileRead)
function onFileRead(err, file) {
if (err) { reject() }
if (err) {
reject()
return
}
resolve(file.toString())
}
}