Skip to content

Commit

Permalink
Fix ESLint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
m-onyshchuk authored and evantahler committed Jun 14, 2019
1 parent b46ce23 commit 9ab83dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions initializers/tasks.js
Expand Up @@ -147,12 +147,12 @@ module.exports = class Tasks extends ActionHero.Initializer {
perform: async function () {
let combinedArgs = [].concat(Array.prototype.slice.call(arguments))
combinedArgs.push(this)
let response = null;
let response = null
try {
response = await task.run.apply(task, combinedArgs)
await api.tasks.enqueueRecurrentTask(taskName)
} catch (error) {
if(task.reEnqueuePeriodicTaskIfException){
if (task.reEnqueuePeriodicTaskIfException) {
await api.tasks.enqueueRecurrentTask(taskName)
}
throw error
Expand Down

0 comments on commit 9ab83dd

Please sign in to comment.