refactor: remove redundand parenthesis when return tuple

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2022-10-27 15:34:52 +01:00
parent d793193fdf
commit 7e06823e58
No known key found for this signature in database
GPG key ID: 59E43E106B247368
11 changed files with 34 additions and 34 deletions

View file

@ -239,12 +239,12 @@ def source_uri(pkgsrc: models.PackageSource) -> Tuple[str, str]:
the package base name.
:param pkgsrc: PackageSource instance
:return (text, uri) tuple
:return text, uri)tuple
"""
if "::" in pkgsrc.Source:
return pkgsrc.Source.split("::", 1)
elif "://" in pkgsrc.Source:
return (pkgsrc.Source, pkgsrc.Source)
return pkgsrc.Source, pkgsrc.Source
path = config.get("options", "source_file_uri")
pkgbasename = pkgsrc.Package.PackageBase.Name
return (pkgsrc.Source, path % (pkgsrc.Source, pkgbasename))
return pkgsrc.Source, path % (pkgsrc.Source, pkgbasename)