scolladon/sfdx-git-delta

View on GitHub
src/service/flowHandler.ts

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'
import { format } from 'util'

import messages from '../locales/en'

import StandardHandler from './standardHandler'

export default class FlowHandler extends StandardHandler {
  public override async handleDeletion() {
    await super.handleDeletion()
    this.warnFlowDeleted()
  }

  private warnFlowDeleted() {
    this.work.warnings.push(
      new Error(format(messages.warningFlowDeleted, this._getElementName()))
    )
  }
}