Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DiscreteEffects.remove #1499

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Fix DiscreteEffects.remove #1499

merged 1 commit into from
Jul 9, 2024

Conversation

DavidLegg
Copy link
Contributor

  • Tickets addressed: N/A
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

DiscreteEffects.remove is one of two methods meant to implement a FIFO queue resource (the other is DiscreteEffects.add). However, it was written to remove the last element of the queue, when it should have removed the first element.

Verification

Tested in the CADRE model while working with @bashbash

Documentation

Documentation for this function was correct, now the code matches that documentation.

Future work

N/A

DiscreteEffects.remove is one of two methods meant to implement a FIFO queue resource (the other is DiscreteEffects.add).
However, it was written to remove the last element of the queue, when it should have removed the first element.
@DavidLegg DavidLegg requested a review from a team as a code owner July 8, 2024 23:46
@DavidLegg DavidLegg requested review from dandelany and skovati July 8, 2024 23:46
@DavidLegg DavidLegg merged commit 9a552d1 into develop Jul 9, 2024
6 checks passed
@DavidLegg DavidLegg deleted the bugfix/queue-remove-effect branch July 9, 2024 17:14
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