'use strict';

const BaseStep = require('./base-step');

module.exports = class VoidStep extends BaseStep {
  constructor(options, action) {
    super(options);
    this.action = action;
  }
  start() {
    this.action && this.action();
    return new Promise(() => {});
  }
};

'use strict';

const BaseStep = require('./base-step');

module.exports = class VoidStep extends BaseStep {
  constructor(options, action) {
    super(options);
    this.action = action;
  }
  start() {
    this.action && this.action();
    return Promise.resolve();
  }
};

Return a resolved promise so promise chains waiting on step and flow resolution can end.
Return a resolved promise so promise chains waiting on step and flow resolution can end.
