Code cleanup

This commit is contained in:
Dirk Müller
2024-05-16 15:47:45 +02:00
parent f5ffc83a69
commit 39fde7744a
8 changed files with 5 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ class GitExporter:
if os.path.exists(self.state_file):
with open(self.state_file) as f:
state_data = yaml.safe_load(f)
if type(state_data) != dict:
if not isinstance(state_data, dict):
state_data = {}
left_to_commit = []
for flat in reversed(flats):