Skip to content

Commit

Permalink
Remove a superfluous condition
Browse files Browse the repository at this point in the history
`value` is always evaluated to true, due to the
check on the previous line
  • Loading branch information
jvoisin authored and heyxkhoa committed Mar 17, 2023
1 parent c244f3d commit 7ef423c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/helpers/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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)
Expand Down

0 comments on commit 7ef423c

Please sign in to comment.