Skip to content

Commit

Permalink
Fix code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Feb 19, 2019
1 parent 57cab30 commit 42ed97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/report/reporters/pretty/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
const { startSpinner } = require('../../utils')

// Add a CLI spinner updated with each complete task
const options = function({ _tasks: tasks }) {
const spinner = startSpinner({ total: tasks.length })
const options = function({ _tasks: { length: total } }) {
const spinner = startSpinner({ total })
return { spinner }
}

Expand Down

0 comments on commit 42ed97f

Please sign in to comment.