Fix duplicate condition check in create_atom_feeds function

Co-authored-by: TheLovinator1 <4153203+TheLovinator1@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-03 05:57:10 +00:00
parent 0ddb59e727
commit a784807a90

View File

@@ -596,9 +596,6 @@ def create_atom_feeds(articles: list[dict[Any, Any]], output_dir: Path) -> None:
if not articles: if not articles:
logger.error("Can't create Atom feeds, no articles provided") logger.error("Can't create Atom feeds, no articles provided")
return return
if not articles:
logger.error("Can't create Atom feeds, no articles provided")
return
articles_sorted: list[dict[Any, Any]] = sorted( articles_sorted: list[dict[Any, Any]] = sorted(
articles, articles,