From bf60be1654a1adba66fa616b34c688a8f0e4c43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 27 May 2020 15:53:33 +0200 Subject: [PATCH] style: fixup needlessly wrapped line --- react/features/room-lock/components/RoomLockPrompt.native.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/react/features/room-lock/components/RoomLockPrompt.native.js b/react/features/room-lock/components/RoomLockPrompt.native.js index acd2cf8a0..747b7eaee 100644 --- a/react/features/room-lock/components/RoomLockPrompt.native.js +++ b/react/features/room-lock/components/RoomLockPrompt.native.js @@ -129,10 +129,7 @@ class RoomLockPrompt extends Component { _validateInput(value: string) { // we want only digits, but both number-pad and numeric add ',' and '.' as symbols - if (this.props.passwordNumberOfDigits - && value.length > 0 - && !/^\d+$/.test(value)) { - + if (this.props.passwordNumberOfDigits && value.length > 0 && !/^\d+$/.test(value)) { return false; }