aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index cad22b7..d69f80e 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -929,13 +929,11 @@ class LoreMessage:
self.trailers.append(trailer)
def get_trailers(self, sloppy=False):
+ trailers = list()
mismatches = set()
- if sloppy:
- return self.trailers, mismatches
- trailers = list()
for tname, tvalue, extdata in self.trailers:
- if tname.lower() in ('fixes', 'obsoleted-by'):
+ if sloppy or tname.lower() in ('fixes', 'obsoleted-by'):
trailers.append((tname, tvalue, extdata, self))
continue