no_operation.js 333 B

1234567891011121314151617181920
  1. 'use strict'
  2. const Operation = require('./')
  3. /**
  4. * An explicit no-operation.
  5. *
  6. * There are several no-ops, such as moving a file to itself, but it's useful
  7. * to have a generic no-op as well.
  8. */
  9. class NoOperation extends Operation {
  10. /**
  11. * @inheritdoc
  12. */
  13. isNoOp() {
  14. return true
  15. }
  16. }
  17. module.exports = NoOperation