1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-24 20:56:11 +02:00

beautify remove_quotes function

This commit is contained in:
Kelly Brazil
2023-01-05 16:55:53 -08:00
parent 7a93a61f54
commit 7cfe68b96a
+7 -7
View File
@@ -93,15 +93,15 @@ __version__ = info.version
def _remove_quotes(value):
if value is not None and value.startswith('"') and value.endswith('"'):
value = value[1:-1]
elif value is not None and value.startswith("'") and value.endswith("'"):
value = value[1:-1]
elif value is None:
if value is None:
value = ''
elif value.startswith('"') and value.endswith('"'):
value = value[1:-1]
elif value.startswith("'") and value.endswith("'"):
value = value[1:-1]
return value