Removes unnecessary else/elif blocks (#26884)
This commit is contained in:
1 parent
18873d202d
commit
b1118cb8ff
13 files changed
+53
-42
No files matched your search
@@ -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"]:
|
||||
|
||||
Reference in new issue
Block a user