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

Response returns long. #2504

Merged
merged 1 commit into from
Jul 21, 2016
Merged

Response returns long. #2504

merged 1 commit into from
Jul 21, 2016

Conversation

rafe-g
Copy link
Contributor

@rafe-g rafe-g commented Jul 21, 2016

@rafe-g
Copy link
Contributor Author

rafe-g commented Jul 21, 2016

@lukeis

this.x = map.get("x");
this.y = map.get("y");
this.z = map.get("z");
this.validateParameters(map.get("x").intValue(), map.get("y").intValue(), map.get("z").intValue());
Copy link
Member

Choose a reason for hiding this comment

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

put the validate line at the end and then you can do just:

this.validateParameters(x, y, z);

also, in validateParameters can you adjust it to ensure the values are less than 360 too (as per spec)

@rafe-g
Copy link
Contributor Author

rafe-g commented Jul 21, 2016

@lukeis thanks for reviewing, updated!

@lukeis lukeis merged commit 352e5da into SeleniumHQ:master Jul 21, 2016
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.

None yet

2 participants