Skip to content

Commit b87397c

Browse files
decyjphrCopilot
andauthored
Update index.js
Co-authored-by: Copilot <[email protected]>
1 parent fa00d78 commit b87397c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
7373
const runtimeConfig = await configManager.loadGlobalSettingsYaml()
7474
const config = Object.assign({}, deploymentConfig, runtimeConfig)
7575
robot.log.debug(`config for ref ${ref} is ${JSON.stringify(config)}`)
76-
if (ref) {
77-
return Settings.syncSelectedRepos(nop, context, repos, subOrgs, config, ref)
78-
} else {
79-
return Settings.syncSelectedRepos(nop, context, repos, subOrgs, config)
80-
}
76+
return Settings.syncSelectedRepos(nop, context, repos, subOrgs, config, ref)
8177
} catch (e) {
8278
if (nop) {
8379
let filename = env.SETTINGS_FILE_PATH

0 commit comments

Comments
 (0)