From 61691fdedbe1002699f773892fff687ed7b31204 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 21 Dec 2020 13:53:19 +0100 Subject: [PATCH] Remove a superfluous condition `value` is always evaluated to true, due to the check on the previous line --- client/src/helpers/validators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/helpers/validators.js b/client/src/helpers/validators.js index 9b853120..f2fee026 100644 --- a/client/src/helpers/validators.js +++ b/client/src/helpers/validators.js @@ -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)