one line define
@@ -368,10 +368,7 @@ class PackageConfig(BaseConfig):
# this is generated by us
self.downstream_package_name: Optional[str] = downstream_package_name
self.dist_git_base_url: str = dist_git_base_url or PROD_DISTGIT_URL
- if downstream_project_url:
- self.downstream_project_url: str = downstream_project_url
- else:
- self.downstream_project_url: str = self.dist_git_package_url
+ self.downstream_project_url: str = downstream_project_url or self.dist_git_package_url
self.actions = actions or {}
self.upstream_ref: Optional[str] = upstream_ref
self.allowed_gpg_keys = allowed_gpg_keys
@@ -380,10 +377,7 @@ class PackageConfig(BaseConfig):
# uncommitted changes will not be present in the archive
self.create_tarball_command: List[str] = create_tarball_command
# command to get current version of the project
- if current_version_command:
- self.current_version_command: List[str] = current_version_command
- else:
- self.current_version_command: List[str] = [
+ self.current_version_command: List[str] = current_version_command or [
"git",
"describe",
"--tags",
