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
Three methods in
src/Infrastructure/MemoryStore.cs(lines 85, 97, 108) each declare an identical local constant: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