mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix the following SonarQube code smells:
1) Use the "RegExp.exec()" method instead. 2) Remove parameter form or provide default value. 3) Extract this nested ternary operation into an independent statement. 4) Replace this character class by the character itself. 5) Unnecessary use of conditional expression for default assignment. 6) Prefer using an optional chain expression instead, as it's more concise and easier to read.
This commit is contained in:
@@ -41,7 +41,7 @@ class BaseAuthentication(metaclass=AuthSourceRegistry):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def authenticate(self):
|
||||
def authenticate(self, form):
|
||||
pass
|
||||
|
||||
def validate(self, form):
|
||||
|
||||
Reference in New Issue
Block a user