diff options
Diffstat (limited to 'searx/external_urls.py')
-rw-r--r-- | searx/external_urls.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/searx/external_urls.py b/searx/external_urls.py index 7844b58d0..8e243ec47 100644 --- a/searx/external_urls.py +++ b/searx/external_urls.py @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# pylint: disable=missing-module-docstring + import math from searx.data import EXTERNAL_URLS @@ -46,8 +49,7 @@ def get_external_url(url_id, item_id, alternative="default"): if url_template is not None: if item_id is not None: return url_template.replace('$1', item_id) - else: - return url_template + return url_template return None |