Skip to content

bug: get_allow_recursion() comment contradicts return value #238

@RyanLHicks

Description

@RyanLHicks

In config.py, get_allow_recursion() has a comment that contradicts its behavior:

if val is None:
    return True  # Default to False for safety

The comment says "Default to False for safety" but the function returns True when no config value is set.

Two possible fixes depending on intent:

  • If True is correct: update the comment to match
  • If False was intended: update the return value to match

Flagging for clarification before touching either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions