lint: Fix the "Expected a default case" warning

This fixes the "Expected a default case" warning
This commit is contained in:
regexowl 2023-08-23 10:49:55 +02:00 committed by Klara Simickova
parent b3767e0503
commit 77ff00d107
3 changed files with 5 additions and 0 deletions

View file

@ -132,6 +132,7 @@ const onSave = (values) => {
case 'domain':
share = `domain:${values['google-domain']}`;
break;
// no default
}
const request = {
@ -366,6 +367,7 @@ const requestToState = (composeRequest, distroInfo, isBeta, isProd) => {
formState['google-account-type'] = 'domain';
formState['google-domain'] = account;
break;
// no default
}
}

View file

@ -34,6 +34,7 @@ const SizeUnit = ({ ...props }) => {
case 'GiB':
setUnit(UNIT_GIB);
break;
// no default
}
setIsOpen(false);

View file

@ -314,6 +314,7 @@ describe('Clones table', () => {
case 2:
toTest.toHaveTextContent('');
break;
// no default
}
// region cell
@ -328,6 +329,7 @@ describe('Clones table', () => {
case 2:
toTest.toHaveTextContent('Image build failed');
break;
// no default
}
}
});