misc: fix simplifiable-condition pylint error (#56288)
This commit is contained in:
parent
da61304c4c
commit
f334721b8c
|
@ -443,7 +443,7 @@ class CategoriesFilteringMixin:
|
|||
def get_api_url_for_site(self, context, wcs_slug):
|
||||
url = self.get_api_url(context)
|
||||
|
||||
if self.categories and self.categories.get('data') or []:
|
||||
if self.categories and self.categories.get('data'):
|
||||
categories_by_site = collections.defaultdict(list)
|
||||
for category in self.categories['data']:
|
||||
key, slug = category.split(':')
|
||||
|
|
Loading…
Reference in New Issue