no_operation.js 347 B

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