mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-24 22:15:45 +03:00
client: Remove a superfluous condition
* commit '61691fdedbe1002699f773892fff687ed7b31204': Remove a superfluous condition
This commit is contained in:
commit
e7f7799b3e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export const validateClientId = (value) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
const formattedValue = value ? value.trim() : value;
|
const formattedValue = value.trim();
|
||||||
if (formattedValue && !(
|
if (formattedValue && !(
|
||||||
R_IPV4.test(formattedValue)
|
R_IPV4.test(formattedValue)
|
||||||
|| R_IPV6.test(formattedValue)
|
|| R_IPV6.test(formattedValue)
|
||||||
|
|
Loading…
Reference in a new issue