chore: ruff的修改

This commit is contained in:
AL76
2025-03-13 03:18:49 +08:00
parent 91fceb0d85
commit 11e8b2fa5f
3 changed files with 11 additions and 22 deletions

View File

@@ -22,9 +22,7 @@ def __create_database_instance():
if username and password:
# 如果有用户名和密码,使用认证连接
return MongoClient(
host, port, username=username, password=password, authSource=auth_source
)
return MongoClient(host, port, username=username, password=password, authSource=auth_source)
# 否则使用无认证连接
return MongoClient(host, port)