fix linting issue

This commit is contained in:
Sarah Hoffmann
2022-06-17 18:14:23 +02:00
parent 0f00f4968c
commit 7f2ad4ac7e

View File

@@ -624,7 +624,7 @@ class LegacyICUNameAnalyzer(AbstractAnalyzer):
if postcode not in self._cache.postcodes:
term = self._search_normalized(postcode_name)
if not term:
return
return None
variants = {term}
if analyzer is not None and variant_base is not None: