Fix sonar finding

Use the opposite operator ("not in") instead.
Boolean checks should not be inverted python:S1940
This commit is contained in:
Zedifus 2023-11-28 02:22:25 +00:00
parent ae41ef1ef9
commit 4b9c6cfd71

View File

@ -18,7 +18,7 @@ class DatabaseBuilder:
logger.info("Fresh Install Detected - Creating Default Settings") logger.info("Fresh Install Detected - Creating Default Settings")
Console.info("Fresh Install Detected - Creating Default Settings") Console.info("Fresh Install Detected - Creating Default Settings")
default_data = self.helper.find_default_password() default_data = self.helper.find_default_password()
if not password in default_data: if password not in default_data:
Console.help( Console.help(
"No default password found. Using password created " "No default password found. Using password created "
"by Crafty. Find it in app/config/default-creds.txt" "by Crafty. Find it in app/config/default-creds.txt"