Skip to content

refactor: extract repeated MaxChars local constant to class level in MemoryStore #15

@fuseraft

Description

@fuseraft

Three methods in src/Infrastructure/MemoryStore.cs (lines 85, 97, 108) each declare an identical local constant:

const int MaxChars = 8_000;

This should be a single private class-level constant so the value only needs to change in one place.

Note: If Issue #14 is implemented first, this constant will already be removed as part of that change. Otherwise it is a standalone cleanup.

Suggested fix: Add private const int MaxChars = 8_000; at the top of the class and remove the three inline declarations.

Files to touch: src/Infrastructure/MemoryStore.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions