Skip to content

Simplify framePosition#873

Merged
sbooth merged 1 commit intomainfrom
framepos
Feb 15, 2026
Merged

Simplify framePosition#873
sbooth merged 1 commit intomainfrom
framepos

Conversation

@sbooth
Copy link
Owner

@sbooth sbooth commented Feb 15, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 15, 2026 01:48
Copy link
Contributor

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

This PR simplifies the framePosition() method in the AudioPlayer::DecoderState class by refactoring a ternary expression into a more readable if-statement with early return. The change maintains identical behavior while improving code clarity and consistency with the codebase's prevalent style of using if-statements with early returns rather than ternary operators for control flow.

Changes:

  • Refactored framePosition() from a ternary expression to an if-statement with early return for improved readability

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

@sbooth sbooth merged commit 7cd8f0b into main Feb 15, 2026
8 checks passed
@sbooth sbooth deleted the framepos branch February 15, 2026 01:51
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