Skip to content

mixclient: Remove unnecessary len check. - #3778

Open
jholdstock wants to merge 1 commit into
decred:masterfrom
jholdstock:rm-unn-len
Open

mixclient: Remove unnecessary len check.#3778
jholdstock wants to merge 1 commit into
decred:masterfrom
jholdstock:rm-unn-len

Conversation

@jholdstock

Copy link
Copy Markdown
Member

This was comparing the length of two constants. m is type wire.MixVect (an alias of [20]byte) and msize is constant int 20.

This was comparing the length of two constants. m is type wire.MixVect
(an alias of [20]byte) and msize is constant int 20.

@davecgh davecgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is @jrick's area so he can correct me if I'm wrong, but I believe it is intentionally checking to make sure any updates to one, but not the other, are caught.

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