Skip to content

refactor: remove code duplication#92

Merged
georgidhristov merged 1 commit into
mainfrom
refactor/remove-duplication
May 29, 2026
Merged

refactor: remove code duplication#92
georgidhristov merged 1 commit into
mainfrom
refactor/remove-duplication

Conversation

@georgidhristov
Copy link
Copy Markdown
Collaborator

Summary

Small low-risk cleanup focused on reducing duplication and improving maintainability without changing behavior.

Changes

  • Centralized header redaction logic into a shared utility used by incoming and outgoing HTTP capture.
  • Removed duplicated capture-size calculation logic through a shared option property.
  • Applied minor code cleanup and simplifications in utility methods.

Notes

  • No functional changes intended.
  • JSON compare/diff logic was intentionally left unchanged.
  • Compare URL validation was intentionally left unchanged.
  • Stream/body capture behavior was intentionally left unchanged.

Verification

  • dotnet build passes with 0 warnings and 0 errors.

@georgidhristov georgidhristov merged commit 1915ba2 into main May 29, 2026
1 check passed
@georgidhristov georgidhristov deleted the refactor/remove-duplication branch May 29, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant