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: validateState does not detect different state versions #293

Merged
merged 1 commit into from
Jan 16, 2018

Conversation

hsanjuan
Copy link
Collaborator

It was comparing state.GetVersion() against state.Version, which
is the same, instead of against mapstate.Version, which is the
constant for the current Version.

It was also returning a nil error, as the scope of the variable
assigned was not that of the outer level.

License: MIT
Signed-off-by: Hector Sanjuan code@hector.link

It was comparing state.GetVersion() against state.Version, which
is the same, instead of against, mapstate.Version, which is the
constant for the current Version.

It was also returning a nil error, as the scope of the variable
assigned was not that of the outer level.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
@ghost ghost assigned hsanjuan Jan 15, 2018
@ghost ghost added the status/in-progress In progress label Jan 15, 2018
@hsanjuan hsanjuan added the need/review Needs a review label Jan 15, 2018
Copy link
Collaborator

@ZenGround0 ZenGround0 left a comment

Choose a reason for hiding this comment

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

Nice catch, LGTM

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 5b3be2d on fix/validate-state into ** on master**.

@hsanjuan hsanjuan merged commit e596c09 into master Jan 16, 2018
@hsanjuan hsanjuan deleted the fix/validate-state branch January 16, 2018 07:41
@ghost ghost removed the status/in-progress In progress label Jan 16, 2018
@hsanjuan hsanjuan mentioned this pull request Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/review Needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants