♻️ Refactored linter warnings.

This commit is contained in:
Robert Honz
2024-01-13 12:04:35 +01:00
parent 14483a1629
commit dd8833add8
3 changed files with 13 additions and 15 deletions
+4 -6
View File
@@ -1,9 +1,8 @@
def is_xml(value: str) -> bool:
result = False
if value:
if value.startswith("<?xml"):
result = True
if value and value.startswith("<?xml"):
result = True
return result
@@ -11,8 +10,7 @@ def is_xml(value: str) -> bool:
def is_json(value: str) -> bool:
result = False
if value:
if value.startswith("{"):
result = True
if value and value.startswith("{"):
result = True
return result