Avoid recasting the type

pull/1/head
Leigh Morresi 2021-01-28 11:12:26 +01:00
rodzic 0c2dc8616b
commit 3322f4a70b
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -85,10 +85,7 @@ class ChangeDetectionStore:
# Probably their should be dict... # Probably their should be dict...
for watch in self.data['watching']: for watch in self.data['watching']:
if watch['uuid'] == uuid: if watch['uuid'] == uuid:
if val in watch: return watch.get(val)
return watch[val]
else:
return None
return None return None