mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
Remove a superfluous condition
`value` is always evaluated to true, due to the check on the previous line
This commit is contained in:
parent
f165fd91c0
commit
61691fdedb
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export const validateClientId = (value) => {
|
|||
if (!value) {
|
||||
return undefined;
|
||||
}
|
||||
const formattedValue = value ? value.trim() : value;
|
||||
const formattedValue = value.trim();
|
||||
if (formattedValue && !(
|
||||
R_IPV4.test(formattedValue)
|
||||
|| R_IPV6.test(formattedValue)
|
||||
|
|
Loading…
Add table
Reference in a new issue