Skip to content

Commit

Permalink
Store handler: Remove 'useless' comment and clarify the purpose of th…
Browse files Browse the repository at this point in the history
…e check for not adding files.
  • Loading branch information
aliel committed Nov 1, 2024
1 parent ca548d9 commit c3a91f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aleph/handlers/content/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ async def fetch_related_content(
) -> None:
# TODO: simplify this function, it's overly complicated for no good reason.

# TODO: this check is useless, remove it
# This check is essential to ensure that files are not added to the system
# or the current node when the configuration disables storing of files.
config = get_config()
if not config.storage.store_files.value:
return # Ignore
return # Ignore if files are not to be stored.

content = message.parsed_content
assert isinstance(content, StoreContent)
Expand Down

0 comments on commit c3a91f0

Please sign in to comment.