Skip to content

Commit

Permalink
client: Remove a superfluous condition
Browse files Browse the repository at this point in the history
* commit '61691fdedbe1002699f773892fff687ed7b31204':
  Remove a superfluous condition
  • Loading branch information
ArtemBaskal committed Dec 21, 2020
2 parents da9e92a + 61691fd commit e7f7799
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 @@ -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)
Expand Down

0 comments on commit e7f7799

Please sign in to comment.