Skip to content

Remove unreachable 'No devices available' guard#2

Merged
afollestad merged 1 commit intoblock:mainfrom
jackfreem:jf/RemoveDeadNoDevicesGuard
Feb 25, 2026
Merged

Remove unreachable 'No devices available' guard#2
afollestad merged 1 commit intoblock:mainfrom
jackfreem:jf/RemoveDeadNoDevicesGuard

Conversation

@jackfreem
Copy link
Collaborator

@jackfreem jackfreem commented Feb 24, 2026

Summary

  • In openUrlInAvailableEmulator, the guard if availableOptions.isEmpty can never be true — "Open on this computer" and "Skip" are always appended unconditionally before it

Testing

  • Build locally, run local .build/debug/qrgo
  • Confirm without emulators open this succeeds
Screenshot 2026-02-24 at 5 33 24 PM

Copilot AI review requested due to automatic review settings February 24, 2026 22:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes an unreachable “No devices available” early-return in openUrlInAvailableEmulator, aligning the control flow with the fact that “Open on this computer” and “Skip” are always present options.

Changes:

  • Deleted the dead availableOptions.isEmpty guard and its message/return path.

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

@jackfreem jackfreem marked this pull request as ready for review February 24, 2026 22:33
@afollestad
Copy link
Collaborator

You'll have to rebase with main for conflicts 😅

@jackfreem jackfreem force-pushed the jf/RemoveDeadNoDevicesGuard branch from 9840b3c to 890c121 Compare February 25, 2026 17:20
@afollestad afollestad enabled auto-merge (squash) February 25, 2026 20:40
@afollestad afollestad disabled auto-merge February 25, 2026 20:41
@afollestad afollestad merged commit f4e9101 into block:main Feb 25, 2026
3 checks passed
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.

3 participants