Skip to content

Conversation

@0xlupin
Copy link

@0xlupin 0xlupin commented Dec 21, 2025

This PR removes a redundant type assertion in the sstack.Push method.

Copy link
Contributor

@jrhea jrhea left a comment

Choose a reason for hiding this comment

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

The fix seems okay to me in theory, but item := data.(*item[P,V]) shadows the item type. Renaming the new local item variable to something else should fix it.

@0xlupin
Copy link
Author

0xlupin commented Dec 22, 2025

The fix seems okay to me in theory, but item := data.(*item[P,V]) shadows the item type. Renaming the new local item variable to something else should fix it.

all done

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