import { UnsupportedTypeError } from '../lib/errors/unsupported-type-error' ; import { pythonFix } from './python' ; import { FixHandler } from './types' ; export function loadPlugin ( type ) { switch ( type ) { case 'pip' : { return pythonFix ; } case 'poetry' : { return pythonFix ; } default : { throw new UnsupportedTypeError ( type ) ; } } }