Skip to content

refactor: make _internetCheckOptions final & unmodifiable#135

Merged
OutdatedGuy merged 1 commit into
mainfrom
refactor/unmodifiable
May 22, 2026
Merged

refactor: make _internetCheckOptions final & unmodifiable#135
OutdatedGuy merged 1 commit into
mainfrom
refactor/unmodifiable

Conversation

@OutdatedGuy

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens InternetConnection’s internal configuration by preventing _internetCheckOptions from being reassigned or mutated after construction, aligning with the intent that check endpoints are fixed per instance.

Changes:

  • Wrap _internetCheckOptions initialization in List.unmodifiable(...) to prevent runtime mutation.
  • Change _internetCheckOptions to late final so it can only be assigned once.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@OutdatedGuy OutdatedGuy left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@OutdatedGuy OutdatedGuy merged commit db6f1bd into main May 22, 2026
4 checks passed
@OutdatedGuy OutdatedGuy deleted the refactor/unmodifiable branch May 22, 2026 14:30
@OutdatedGuy OutdatedGuy mentioned this pull request Jun 1, 2026
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.

2 participants