merge two lines into one

This commit is contained in:
Jakub Trllo 2025-11-13 17:11:38 +01:00 committed by GitHub
parent bab249a54a
commit 46b534cfcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,8 +217,7 @@ def _filter_supported_exts(
filtered_exs: set[str] = set() filtered_exs: set[str] = set()
for ext in extensions: for ext in extensions:
if not _Cache.already_checked(ext): if not _Cache.already_checked(ext):
r = test_func(ext) _Cache.set_ext_support(ext, test_func(ext))
_Cache.set_ext_support(ext, r)
if _Cache.is_supported(ext): if _Cache.is_supported(ext):
filtered_exs.add(ext) filtered_exs.add(ext)
return filtered_exs return filtered_exs