Skip to content

Use let in RawRepresentableTests#1196

Open
AbodiDawoud wants to merge 1 commit into
SwiftyJSON:masterfrom
AbodiDawoud:codex/raw-representable-let-cleanup
Open

Use let in RawRepresentableTests#1196
AbodiDawoud wants to merge 1 commit into
SwiftyJSON:masterfrom
AbodiDawoud:codex/raw-representable-let-cleanup

Conversation

@AbodiDawoud

Copy link
Copy Markdown

What changed:

Changed three immutable local JSON values in RawRepresentableTests from var to let.

Why:

This removes Swift compiler warnings about variables that are never mutated, without changing test behavior or public API.

Checklist:

  • Does this have tests?
  • Does this have documentation?
  • Does this break the public API (Requires major version bump)?
  • Is this a new feature (Requires minor version bump)?

Validation:

  • swift test baseline passed before the change: 149 tests
  • swift test --filter RawRepresentableTests
  • swift build --build-tests
  • git diff --check

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