replace == None with is None

This commit is contained in:
Michael Poluektov
2024-08-14 13:39:53 +01:00
parent 6f72def1ac
commit 038fc48ac0
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ async def create_new_function(
form_data.id = form_data.id.lower()
function = Functions.get_function_by_id(form_data.id)
if function == None:
if function is None:
function_path = os.path.join(FUNCTIONS_DIR, f"{form_data.id}.py")
try:
with open(function_path, "w") as function_file: