validators: Remove unneeded condition for service validator
After the regex was fixed this condition should be removed.
This commit is contained in:
parent
90bf5cf91f
commit
c2cdb84e77
1 changed files with 0 additions and 6 deletions
|
|
@ -1,7 +1,5 @@
|
|||
import type { Partition } from './steps/FileSystem/FileSystemTable';
|
||||
|
||||
import { FIRST_BOOT_SERVICE } from '../../constants';
|
||||
|
||||
export const isAwsAccountIdValid = (awsAccountId: string | undefined) => {
|
||||
return (
|
||||
awsAccountId !== undefined &&
|
||||
|
|
@ -139,10 +137,6 @@ export const isPortValid = (port: string) => {
|
|||
};
|
||||
|
||||
export const isServiceValid = (service: string) => {
|
||||
if (service === FIRST_BOOT_SERVICE) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// see `man systemd.unit` for the exact specification
|
||||
return (
|
||||
service.length <= 256 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue