lgtome/rm-node-modules-cli

View on GitHub
src/helpers/getResolvedType.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export function getResolvedType(type = 'check') {
  switch (type) {
    case 'check':
      return { resolvedType: 'check' }
    case 'execute':
      return { resolvedType: 'execute' }
    default:
      return { error: Error('Incorrect type!') }
  }
}