'use strict';

// Dependencies
const moment = require('moment')

module.exports = function setup() {
  return function plugin(files, aldous, done) {
    files.forEach(function(file) {
      if (file.date) {
        file.date = moment(file.date)
      }
    })
  }
}

'use strict';

// Dependencies
const moment = require('moment')

module.exports = function setup() {
  return function plugin(files, aldous, done) {
    setImmediate(done)
    files.forEach(function(file) {
      if (file.date) {
        file.date = moment(file.date)
      }
    })
  }
}

Fix missing call to done()
Fix missing call to done()
