Some code cleanup

This commit is contained in:
StableLlama
2025-05-10 00:34:33 +02:00
parent 7505a76004
commit 867ead6571
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -173,7 +173,7 @@ class DataListPop:
@classmethod
def VALIDATE_INPUTS(cls, input_types: list[dict[str, str]]) -> bool|str:
if input_types[0].get("index", "INT") is not "INT":
if input_types[0].get("index", "INT") != "INT":
return "index must be an INT type"
return True
@@ -678,7 +678,7 @@ class DataListFilter:
@classmethod
def VALIDATE_INPUTS(cls, input_types: list[dict[str, str]]) -> bool|str:
if input_types[0]["filter"] is not "BOOLEAN":
if input_types[0]["filter"] != "BOOLEAN":
return "filter must be a BOOLEAN type"
return True
+1 -1
View File
@@ -353,7 +353,7 @@ class DictPopItem:
return result, key, value, True
else:
return result, "", None, False
except Exception as e:
except:
return result, "", None, False