peaceiris/actions-hugo

View on GitHub
src/get-arch.ts

Summary

Maintainability
A
1 hr
Test Coverage
Similar blocks of code found in 2 locations. Consider refactoring.
export default function getArch(arch: string): string {
switch (arch) {
case 'x64':
return '64bit';
case 'arm':
return 'ARM';
case 'arm64':
return 'ARM64';
default:
throw new Error(`${arch} is not supported`);
}
}