Skip to content

Simplifies getting replay id attribute from data in queue#1323

Merged
matux merged 3 commits into
masterfrom
matux/remove-getitemattr
Sep 22, 2025
Merged

Simplifies getting replay id attribute from data in queue#1323
matux merged 3 commits into
masterfrom
matux/remove-getitemattr

Conversation

@matux

@matux matux commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Description of the change

This PR simplifies how we get the replay id attribute from data with direct attribute access and removes the now unused getItemAttribute utility function.

@matux matux requested a review from Copilot September 22, 2025 21:16
@matux matux self-assigned this Sep 22, 2025

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 simplifies the codebase by removing the unused getItemAttribute utility function and replacing its single usage with direct attribute access. The change reduces code complexity while maintaining the same functionality for retrieving replay ID attributes from queue data.

Key changes:

  • Removed the getItemAttribute helper function and its tests
  • Replaced the function call with inline attribute finding logic using modern JavaScript syntax

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/utility.js Removes the getItemAttribute function and its export
test/utility.test.js Removes tests for the deleted getItemAttribute function
src/queue.js Replaces getItemAttribute call with direct attribute access using array find method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/queue.js Outdated
@matux matux merged commit 64dc2df into master Sep 22, 2025
4 checks passed
@matux matux deleted the matux/remove-getitemattr branch September 22, 2025 21:24
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