Skip to content

Commit fdf9990

Browse files
fix: change await back to return
1 parent 4d5d6bc commit fdf9990

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ const env = require('./lib/env')
99

1010
let deploymentConfig
1111

12-
1312
module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) => {
1413
let appName = 'safe-settings'
1514
let appSlug = 'safe-settings'
16-
15+
1716
// All repos _could_ be affected, so sync everything
1817
async function syncAllSettings (nop, context, repo = context.repo(), ref) {
1918
try {

lib/plugins/repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = class Repository extends ErrorStash {
6565
this.log.debug(`Syncing Repo ${this.repo.owner}/${this.repo.repo}`)
6666
// let hasChanges = false
6767
// let hasTopicChanges = false
68-
await this.github.repos.get(this.repo)
68+
return this.github.repos.get(this.repo)
6969
.then(resp => {
7070
const changes = mergeDeep.compareDeep(resp.data, this.settings)
7171
// hasChanges = changes.additions.length > 0 || changes.modifications.length > 0

lib/settings.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,6 @@ ${this.results.reduce((x, y) => {
679679
const overridePaths = this.subOrgConfigMap || await this.getSubOrgConfigMap()
680680
const subOrgConfigs = {}
681681

682-
this.log.debug(`OverridePaths: ${JSON.stringify(overridePaths, null, 2)}`)
683-
684682
for (const override of overridePaths) {
685683
const data = await this.loadYaml(override.path)
686684
this.log.debug(`data = ${JSON.stringify(data)}`)
@@ -705,7 +703,6 @@ ${this.results.reduce((x, y) => {
705703
})
706704
})
707705
}
708-
this.log.debug(`data: ${JSON.stringify(data, null, 2)}`)
709706
if (data.suborgproperties) {
710707
const promises = data.suborgproperties.map((customProperty) => {
711708
return this.getReposForCustomProperty(customProperty)

0 commit comments

Comments
 (0)