Skip to content

Commit

Permalink
fixup! lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceres6 committed Jul 22, 2024
1 parent e05f4f5 commit 66e3e33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/jenkins-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = (app, events) => {
res.end()
})

app.emitJenkinsEvent = function emitJenkinsEvent (event, data, logger) {
app.emitJenkinsEvent = async function emitJenkinsEvent (event, data, logger) {
const { identifier } = data

// create unique logger which is easily traceable throughout the entire app
Expand All @@ -78,7 +78,7 @@ module.exports = (app, events) => {
data.logger.info('Emitting Jenkins event')
debug(data)

events.emit('jenkins', data)
await events.emit('jenkins', data)
return events.emit(`jenkins.${event}`, data)
}
}
4 changes: 2 additions & 2 deletions lib/push-jenkins-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function pushStarted (options, build, cb) {
}
}

findLatestCommitInPr(optsWithPr).then(latestCommit => {
return findLatestCommitInPr(optsWithPr).then(latestCommit => {
const statusOpts = Object.assign({
sha: latestCommit.sha,
url: build.url,
Expand All @@ -40,7 +40,7 @@ function pushStarted (options, build, cb) {
message: build.message || 'running tests'
}, options)

createGhStatus(statusOpts, logger).then(cb).catch(cb)
return createGhStatus(statusOpts, logger).then(cb).catch(cb)
}, err => {
logger.error(err, 'Got error when retrieving GitHub commits for PR')
return cb(err)
Expand Down
4 changes: 2 additions & 2 deletions scripts/jenkins-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const pushJenkinsUpdate = require('../lib/push-jenkins-update')
function handleJenkinsStart (event) {
const { repo, owner } = event

pushJenkinsUpdate.pushStarted({
return pushJenkinsUpdate.pushStarted({
owner,
repo,
logger: event.logger
Expand All @@ -19,7 +19,7 @@ function handleJenkinsStart (event) {
function handleJenkinsStop (event) {
const { repo, owner } = event

pushJenkinsUpdate.pushEnded({
return pushJenkinsUpdate.pushEnded({
owner,
repo,
logger: event.logger
Expand Down

0 comments on commit 66e3e33

Please sign in to comment.