Removes unnecessary else/elif blocks (#26884)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-09-24 13:53:03 -07:00
1 parent 18873d202d
commit b1118cb8ff
13 files changed
+53 -42

No files matched your search

+7 -5
View File
@@ -189,17 +189,19 @@ class MVGLiveData:
and _departure["destination"] not in self._destinations
):
continue
elif (
if (
"" not in self._directions[:1]
and _departure["direction"] not in self._directions
):
continue
elif (
"" not in self._lines[:1] and _departure["linename"] not in self._lines
):
if "" not in self._lines[:1] and _departure["linename"] not in self._lines:
continue
elif _departure["time"] < self._timeoffset:
if _departure["time"] < self._timeoffset:
continue
# now select the relevant data
_nextdep = {ATTR_ATTRIBUTION: ATTRIBUTION}
for k in ["destination", "linename", "time", "direction", "product"]: